automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw21620 [PATCH v2 06/13] net/failsafe: add fail-safe PMD
       [not found] <1d50a6f160bd12c3f24fc9b6a260edb6b03ac394.1488985489.git.gaetan.rivet@6wind.com>
@ 2017-03-08 15:16 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2017-03-08 15:16 UTC (permalink / raw)
  To: test-report; +Cc: Gaetan Rivet

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

_coding style issues_


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

CHECK:CAMELCASE: Avoid CamelCase: <eal_parse_pci_DomBDF>
#755: 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'
#914: FILE: drivers/net/failsafe/failsafe_args.c:261:
+	unsigned arg_count;

WARNING:LONG_LINE_STRING: line over 90 characters
#1501: 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
#1928: 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?
#2173: FILE: drivers/net/failsafe/failsafe_private.h:160:
+#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?
#2173: FILE: drivers/net/failsafe/failsafe_private.h:160:
+#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?
#2173: FILE: drivers/net/failsafe/failsafe_private.h:160:
+#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?
#2192: FILE: drivers/net/failsafe/failsafe_private.h:179:
+#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
#2201: FILE: drivers/net/failsafe/failsafe_private.h:188:
+#define SUBOPS(s, ops) \
+	(ETH(s)->dev_ops->ops)

total: 0 errors, 4 warnings, 2182 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-08 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1d50a6f160bd12c3f24fc9b6a260edb6b03ac394.1488985489.git.gaetan.rivet@6wind.com>
2017-03-08 15:16 ` [dpdk-test-report] |WARNING| pw21620 [PATCH v2 06/13] net/failsafe: add fail-safe PMD checkpatch

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).