From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: "Varghese, Vipin" <vipin.varghese@intel.com>
Subject: [dpdk-test-report] |WARNING| pw32559 [PATCH v1 net/tap] add logic to assign speed from user
Date: Thu, 21 Dec 2017 12:13:25 +0100 (CET) [thread overview]
Message-ID: <20171221111325.96DFF1B25F@dpdk.org> (raw)
In-Reply-To: <1513875200-5061-1-git-send-email-vipin.varghese@intel.com>
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/32559
_coding style issues_
CHECK:CAMELCASE: Avoid CamelCase: <edataCmd>
#57: FILE: drivers/net/tap/rte_eth_tap.c:1239:
+ struct ethtool_cmd edataCmd = {0};
CHECK:CAMELCASE: Avoid CamelCase: <edataLink>
#59: FILE: drivers/net/tap/rte_eth_tap.c:1241:
+ struct ethtool_link_settings edataLink = {0};
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pmd == NULL'
#62: FILE: drivers/net/tap/rte_eth_tap.c:1244:
+ if ((pmd == NULL) || (iface_name == NULL) ||
+ (speed == ETH_SPEED_NUM_NONE))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'iface_name == NULL'
#62: FILE: drivers/net/tap/rte_eth_tap.c:1244:
+ if ((pmd == NULL) || (iface_name == NULL) ||
+ (speed == ETH_SPEED_NUM_NONE))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'speed == ETH_SPEED_NUM_NONE'
#62: FILE: drivers/net/tap/rte_eth_tap.c:1244:
+ if ((pmd == NULL) || (iface_name == NULL) ||
+ (speed == ETH_SPEED_NUM_NONE))
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#69: FILE: drivers/net/tap/rte_eth_tap.c:1251:
+ (mode == REMOTE_ONLY)?"REMOTE":"LOCAL",
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#69: FILE: drivers/net/tap/rte_eth_tap.c:1251:
+ (mode == REMOTE_ONLY)?"REMOTE":"LOCAL",
^
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#91: FILE: drivers/net/tap/rte_eth_tap.c:1273:
+ (mode == REMOTE_ONLY)?"REMOTE":"LOCAL",
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#91: FILE: drivers/net/tap/rte_eth_tap.c:1273:
+ (mode == REMOTE_ONLY)?"REMOTE":"LOCAL",
^
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#103: FILE: drivers/net/tap/rte_eth_tap.c:1285:
+ (mode == REMOTE_ONLY)?REMOTE_ONLY:LOCAL_ONLY);
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#103: FILE: drivers/net/tap/rte_eth_tap.c:1285:
+ (mode == REMOTE_ONLY)?REMOTE_ONLY:LOCAL_ONLY);
^
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#113: FILE: drivers/net/tap/rte_eth_tap.c:1295:
+ (mode == REMOTE_ONLY)?REMOTE_ONLY:LOCAL_ONLY);
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#113: FILE: drivers/net/tap/rte_eth_tap.c:1295:
+ (mode == REMOTE_ONLY)?REMOTE_ONLY:LOCAL_ONLY);
^
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#120: FILE: drivers/net/tap/rte_eth_tap.c:1302:
+ speed, (mode == REMOTE_ONLY)?"REMOTE":"LOCAL", iface_name);
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#120: FILE: drivers/net/tap/rte_eth_tap.c:1302:
+ speed, (mode == REMOTE_ONLY)?"REMOTE":"LOCAL", iface_name);
^
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pmd == NULL'
#136: FILE: drivers/net/tap/rte_eth_tap.c:1318:
+ if ((pmd == NULL) || (iface_name == NULL))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'iface_name == NULL'
#136: FILE: drivers/net/tap/rte_eth_tap.c:1318:
+ if ((pmd == NULL) || (iface_name == NULL))
WARNING:TYPO_SPELLING: 'Retrive' may be misspelled - perhaps 'Retrieve'?
#140: FILE: drivers/net/tap/rte_eth_tap.c:1322:
+ "Retrive speed for %s iface_name %s.
",
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#141: FILE: drivers/net/tap/rte_eth_tap.c:1323:
+ (mode == REMOTE_ONLY)?"REMOTE":"LOCAL", iface_name);
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#141: FILE: drivers/net/tap/rte_eth_tap.c:1323:
+ (mode == REMOTE_ONLY)?"REMOTE":"LOCAL", iface_name);
^
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#149: FILE: drivers/net/tap/rte_eth_tap.c:1331:
+ (mode == REMOTE_ONLY)?REMOTE_ONLY:LOCAL_ONLY);
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#149: FILE: drivers/net/tap/rte_eth_tap.c:1331:
+ (mode == REMOTE_ONLY)?REMOTE_ONLY:LOCAL_ONLY);
^
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'err == 0'
#151: FILE: drivers/net/tap/rte_eth_tap.c:1333:
+ if ((err == 0) && (edataLink.speed))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'edataLink.speed'
#151: FILE: drivers/net/tap/rte_eth_tap.c:1333:
+ if ((err == 0) && (edataLink.speed))
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#160: FILE: drivers/net/tap/rte_eth_tap.c:1342:
+ (mode == REMOTE_ONLY)?REMOTE_ONLY:LOCAL_ONLY);
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#160: FILE: drivers/net/tap/rte_eth_tap.c:1342:
+ (mode == REMOTE_ONLY)?REMOTE_ONLY:LOCAL_ONLY);
^
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'err == 0'
#161: FILE: drivers/net/tap/rte_eth_tap.c:1343:
+ if ((err == 0) && (edataCmd.speed))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'edataCmd.speed'
#161: FILE: drivers/net/tap/rte_eth_tap.c:1343:
+ if ((err == 0) && (edataCmd.speed))
WARNING:TYPO_SPELLING: 'retrive' may be misspelled - perhaps 'retrieve'?
#165: FILE: drivers/net/tap/rte_eth_tap.c:1347:
+ "Failed to retrive speed for %s iface_name %s.
",
CHECK:SPACING: spaces required around that '?' (ctx:VxV)
#166: FILE: drivers/net/tap/rte_eth_tap.c:1348:
+ (mode == REMOTE_ONLY)?"REMOTE":"LOCAL", iface_name);
^
CHECK:SPACING: spaces required around that ':' (ctx:VxV)
#166: FILE: drivers/net/tap/rte_eth_tap.c:1348:
+ (mode == REMOTE_ONLY)?"REMOTE":"LOCAL", iface_name);
^
CHECK:CAMELCASE: Avoid CamelCase: <remoteSpeed>
#174: FILE: drivers/net/tap/rte_eth_tap.c:1356:
+ int err = 0, remoteSpeed = 0, localSpeed = 0;
CHECK:CAMELCASE: Avoid CamelCase: <localSpeed>
#174: FILE: drivers/net/tap/rte_eth_tap.c:1356:
+ int err = 0, remoteSpeed = 0, localSpeed = 0;
CHECK:SPACING: No space is necessary after a cast
#186: FILE: drivers/net/tap/rte_eth_tap.c:1368:
+ if (localSpeed != (int) pmd_link.link_speed) {
CHECK:SPACING: No space is necessary after a cast
#193: FILE: drivers/net/tap/rte_eth_tap.c:1375:
+ pmd_link.link_speed = (unsigned int) localSpeed;
CHECK:SPACING: No space is necessary after a cast
#204: FILE: drivers/net/tap/rte_eth_tap.c:1386:
+ remoteSpeed = (unsigned int) err;
CHECK:SPACING: No space is necessary after a cast
#206: FILE: drivers/net/tap/rte_eth_tap.c:1388:
+ if ((unsigned int) remoteSpeed != pmd_link.link_speed) {
CHECK:SPACING: No space is necessary after a cast
#212: FILE: drivers/net/tap/rte_eth_tap.c:1394:
+ remoteSpeed = (int) pmd_link.link_speed;
total: 0 errors, 2 warnings, 36 checks, 221 lines checked
parent reply other threads:[~2017-12-21 11:13 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1513875200-5061-1-git-send-email-vipin.varghese@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=20171221111325.96DFF1B25F@dpdk.org \
--to=checkpatch@dpdk.org \
--cc=test-report@dpdk.org \
--cc=vipin.varghese@intel.com \
/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).