automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Jiawen Wu <jiawenwu@trustnetic.com>
Subject: [dpdk-test-report] |WARNING| pw76240 [PATCH v1 38/42] net/txgbe: add DCB packet buffer allocation
Date: Wed,  9 Sep 2020 01:29:01 +0200 (CEST)	[thread overview]
Message-ID: <20200908232901.013DE1BE85@dpdk.org> (raw)
In-Reply-To: <20200901115113.1529675-38-jiawenwu@trustnetic.com>

Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/76240

_coding style issues_


WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
#308: FILE: drivers/net/txgbe/base/txgbe_dcb.h:17:
+	 * If 8 traffic classes can be configured, the value is 0x80. */

WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
#327: FILE: drivers/net/txgbe/base/txgbe_dcb.h:36:
+			       * in 64B granularity.*/

WARNING:FUNCTION_ARGUMENTS: function definition argument 'struct txgbe_dcb_config *' should also have an identifier name
#374: FILE: drivers/net/txgbe/base/txgbe_dcb.h:83:
+void txgbe_dcb_unpack_map_cee(struct txgbe_dcb_config *, int, u8 *);

WARNING:FUNCTION_ARGUMENTS: function definition argument 'int' should also have an identifier name
#374: FILE: drivers/net/txgbe/base/txgbe_dcb.h:83:
+void txgbe_dcb_unpack_map_cee(struct txgbe_dcb_config *, int, u8 *);

WARNING:FUNCTION_ARGUMENTS: function definition argument 'u8 *' should also have an identifier name
#374: FILE: drivers/net/txgbe/base/txgbe_dcb.h:83:
+void txgbe_dcb_unpack_map_cee(struct txgbe_dcb_config *, int, u8 *);

WARNING:FUNCTION_ARGUMENTS: function definition argument 'struct txgbe_dcb_config *' should also have an identifier name
#375: FILE: drivers/net/txgbe/base/txgbe_dcb.h:84:
+u8 txgbe_dcb_get_tc_from_up(struct txgbe_dcb_config *, int, u8);

WARNING:FUNCTION_ARGUMENTS: function definition argument 'int' should also have an identifier name
#375: FILE: drivers/net/txgbe/base/txgbe_dcb.h:84:
+u8 txgbe_dcb_get_tc_from_up(struct txgbe_dcb_config *, int, u8);

WARNING:FUNCTION_ARGUMENTS: function definition argument 'u8' should also have an identifier name
#375: FILE: drivers/net/txgbe/base/txgbe_dcb.h:84:
+u8 txgbe_dcb_get_tc_from_up(struct txgbe_dcb_config *, int, u8);

WARNING:PREFER_FALLTHROUGH: Prefer 'fallthrough;' over fallthrough comment
#421: FILE: drivers/net/txgbe/base/txgbe_hw.c:1795:
+		/* fall through - configure remaining packet buffers */

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pfc_conf->fc.high_water > max_high_water'
#625: FILE: drivers/net/txgbe/txgbe_ethdev.c:2629:
+	if ((pfc_conf->fc.high_water > max_high_water) ||
+	    (pfc_conf->fc.high_water <= pfc_conf->fc.low_water)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pfc_conf->fc.high_water <= pfc_conf->fc.low_water'
#625: FILE: drivers/net/txgbe/txgbe_ethdev.c:2629:
+	if ((pfc_conf->fc.high_water > max_high_water) ||
+	    (pfc_conf->fc.high_water <= pfc_conf->fc.low_water)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'err == 0'
#641: FILE: drivers/net/txgbe/txgbe_ethdev.c:2645:
+	if ((err == 0) || (err == TXGBE_ERR_FC_NOT_NEGOTIATED))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'err == TXGBE_ERR_FC_NOT_NEGOTIATED'
#641: FILE: drivers/net/txgbe/txgbe_ethdev.c:2645:
+	if ((err == 0) || (err == TXGBE_ERR_FC_NOT_NEGOTIATED))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around dev->data->dev_conf
#700: FILE: drivers/net/txgbe/txgbe_rxtx.c:2765:
+	struct rte_eth_conf *dev_conf = &(dev->data->dev_conf);

CHECK:SPACING: spaces preferred around that '/' (ctx:VxV)
#738: FILE: drivers/net/txgbe/txgbe_rxtx.c:2803:
+		wr32m(hw, TXGBE_TAGTPID(i/2),
 		                         ^

total: 0 errors, 9 warnings, 6 checks, 613 lines checked

           reply	other threads:[~2020-09-08 23:29 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20200901115113.1529675-38-jiawenwu@trustnetic.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=20200908232901.013DE1BE85@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=jiawenwu@trustnetic.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).