automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Gaetan Rivet <gaetan.rivet@6wind.com>
Subject: [dpdk-test-report] |WARNING| pw21349 [PATCH 06/12] net/failsafe: add fail-safe PMD
Date: Fri,  3 Mar 2017 16:41:18 +0100 (CET)	[thread overview]
Message-ID: <20170303154118.131E7FA62@dpdk.org> (raw)
In-Reply-To: <e2a3bdc58f89ecea4cc0de569588c3dfba45aeae.1488550982.git.gaetan.rivet@6wind.com>

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

_coding style issues_


WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#307: FILE: drivers/net/failsafe/failsafe.c:84:
+		const unsigned socket_id,

CHECK:CAMELCASE: Avoid CamelCase: <eal_parse_pci_DomBDF>
#560: FILE: drivers/net/failsafe/failsafe_args.c:102:
+	    eal_parse_pci_DomBDF(args, &d->pci.addr) == 0)

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#719: FILE: drivers/net/failsafe/failsafe_args.c:261:
+	unsigned arg_count;

WARNING:LONG_LINE_STRING: line over 90 characters
#1306: FILE: drivers/net/failsafe/failsafe_ops.c:171:
+			ERROR("Operation rte_eth_dev_set_link_down failed for sub_device %d"

WARNING:LONG_LINE_STRING: line over 90 characters
#1733: FILE: drivers/net/failsafe/failsafe_ops.c:598:
+			ERROR("Operation rte_eth_dev_flow_ctrl_set failed for sub_device %d"

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i' - possible side-effects?
#1980: FILE: drivers/net/failsafe/failsafe_private.h:162:
+#define FOREACH_SUBDEV_ST(s, i, dev, state)				\
+	for (i = fs_find_next((dev), 0, state);				\
+	     i < PRIV(dev)->subs_tail && (s = &PRIV(dev)->subs[i]);	\
+	     i = fs_find_next((dev), i + 1, state))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'dev' - possible side-effects?
#1980: FILE: drivers/net/failsafe/failsafe_private.h:162:
+#define FOREACH_SUBDEV_ST(s, i, dev, state)				\
+	for (i = fs_find_next((dev), 0, state);				\
+	     i < PRIV(dev)->subs_tail && (s = &PRIV(dev)->subs[i]);	\
+	     i = fs_find_next((dev), i + 1, state))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'state' - possible side-effects?
#1980: FILE: drivers/net/failsafe/failsafe_private.h:162:
+#define FOREACH_SUBDEV_ST(s, i, dev, state)				\
+	for (i = fs_find_next((dev), 0, state);				\
+	     i < PRIV(dev)->subs_tail && (s = &PRIV(dev)->subs[i]);	\
+	     i = fs_find_next((dev), i + 1, state))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'dev' - possible side-effects?
#1999: FILE: drivers/net/failsafe/failsafe_private.h:181:
+#define TX_SUBDEV(dev)							  \
+	(PRIV(dev)->subs_tx >= PRIV(dev)->subs_tail		   ? NULL \
+	 : (PRIV(dev)->subs[PRIV(dev)->subs_tx].state < DEV_PROBED ? NULL \
+	 : &PRIV(dev)->subs[PRIV(dev)->subs_tx]))

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'ops' may be better as '(ops)' to avoid precedence issues
#2008: FILE: drivers/net/failsafe/failsafe_private.h:190:
+#define SUBOPS(s, ops) \
+	(ETH(s)->dev_ops->ops)

total: 0 errors, 4 warnings, 2013 lines checked

           reply	other threads:[~2017-03-03 15:41 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <e2a3bdc58f89ecea4cc0de569588c3dfba45aeae.1488550982.git.gaetan.rivet@6wind.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=20170303154118.131E7FA62@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=gaetan.rivet@6wind.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).