From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Anatoly Burakov <anatoly.burakov@intel.com>
Subject: |WARNING| pw153307 [PATCH v2 1/2] cmdline: add floating point support
Date: Tue, 6 May 2025 15:08:33 +0200 (CEST) [thread overview]
Message-ID: <20250506130833.84BCE123FB9@dpdk.org> (raw)
In-Reply-To: <cc5198a753f4a86242c0135914affba97d7d4d1c.1746536891.git.anatoly.burakov@intel.com>
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/153307
_coding style issues_
ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#99: FILE: app/test/test_cmdline_num.c:29:
+ const char * str;
ERROR:POINTER_LOCATION: "(foo*)" should be "(foo *)"
#294: FILE: app/test/test_cmdline_num.c:548:
+ ret = cmdline_parse_num((cmdline_parse_token_hdr_t*)&token,
ERROR:POINTER_LOCATION: "(foo*)" should be "(foo *)"
#295: FILE: app/test/test_cmdline_num.c:549:
+ float_invalid_strs[i], (void*)&result, sizeof(result));
ERROR:POINTER_LOCATION: "(foo*)" should be "(foo *)"
#298: FILE: app/test/test_cmdline_num.c:552:
+ cmdline_get_help_num((cmdline_parse_token_hdr_t*)&token,
ERROR:POINTER_LOCATION: "(foo*)" should be "(foo *)"
#340: FILE: app/test/test_cmdline_num.c:664:
+ cmdline_get_help_num((cmdline_parse_token_hdr_t*)&token,
ERROR:POINTER_LOCATION: "(foo*)" should be "(foo *)"
#343: FILE: app/test/test_cmdline_num.c:667:
+ ret = cmdline_parse_num((cmdline_parse_token_hdr_t*) &token,
ERROR:POINTER_LOCATION: "(foo*)" should be "(foo *)"
#345: FILE: app/test/test_cmdline_num.c:669:
+ (void*)&result, sizeof(result));
WARNING:LONG_LINE_COMMENT: line length of 105 exceeds 100 columns
#347: FILE: app/test/test_cmdline_num.c:671:
+ /* if it should have passed but didn't, or if it should have failed but didn't */
WARNING:LONG_LINE: line length of 103 exceeds 100 columns
#348: FILE: app/test/test_cmdline_num.c:672:
+ if ((ret < 0) == (can_parse_float(num_valid_float_strs[i].result, type) > 0)) {
WARNING:LONG_LINE: line length of 103 exceeds 100 columns
#354: FILE: app/test/test_cmdline_num.c:678:
+ if (ret > 0 && float_cmp(num_valid_float_strs[i].result, &result, type) != 0) {
ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#460: FILE: lib/cmdline/cmdline_parse_num.c:121:
+ if (res) *(float *)res = flt;
ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#462: FILE: lib/cmdline/cmdline_parse_num.c:123:
+ if (res) *(double *)res = result;
WARNING:TYPO_SPELLING: 'ressize' may be misspelled - perhaps 'resize'?
#477: FILE: lib/cmdline/cmdline_parse_num.c:155:
+ if (ressize < sizeof(float))
WARNING:TYPO_SPELLING: 'ressize' may be misspelled - perhaps 'resize'?
#481: FILE: lib/cmdline/cmdline_parse_num.c:159:
+ if (ressize < sizeof(double))
ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#499: FILE: lib/cmdline/cmdline_parse_num.c:232:
}
+ else if (c == '.') {
ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#519: FILE: lib/cmdline/cmdline_parse_num.c:262:
+ }
+ else {
ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#533: FILE: lib/cmdline/cmdline_parse_num.c:276:
+ }
+ else {
ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#545: FILE: lib/cmdline/cmdline_parse_num.c:288:
+ }
+ else if (c == '-') {
ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#549: FILE: lib/cmdline/cmdline_parse_num.c:292:
+ }
+ else {
ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#559: FILE: lib/cmdline/cmdline_parse_num.c:302:
}
+ else if (c == '.') {
ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#579: FILE: lib/cmdline/cmdline_parse_num.c:325:
}
+ else if (c == '.') {
ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#585: FILE: lib/cmdline/cmdline_parse_num.c:331:
+ }
+ else if (c == 'e' || c == 'E') {
total: 17 errors, 5 warnings, 628 lines checked
parent reply other threads:[~2025-05-06 13:08 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <cc5198a753f4a86242c0135914affba97d7d4d1c.1746536891.git.anatoly.burakov@intel.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250506130833.84BCE123FB9@dpdk.org \
--to=checkpatch@dpdk.org \
--cc=anatoly.burakov@intel.com \
--cc=test-report@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).