* [dpdk-test-report] |WARNING| pw26841 [PATCH v9 03/11] net/failsafe: add fail-safe PMD
[not found] <ee8bdbbec615f889abe79a8928572a6fdebb6358.1499815140.git.gaetan.rivet@6wind.com>
@ 2017-07-11 23:27 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2017-07-11 23:27 UTC (permalink / raw)
To: test-report; +Cc: Gaetan Rivet
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/26841
_coding style issues_
CHECK:CAMELCASE: Avoid CamelCase: <PRIu8>
#1718: FILE: drivers/net/failsafe/failsafe_ops.c:614:
+ PRIu8 " with error %d", i, ret);
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i' - possible side-effects?
#1928: FILE: drivers/net/failsafe/failsafe_private.h:155:
+#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?
#1928: FILE: drivers/net/failsafe/failsafe_private.h:155:
+#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?
#1928: FILE: drivers/net/failsafe/failsafe_private.h:155:
+#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?
#1947: FILE: drivers/net/failsafe/failsafe_private.h:174:
+#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
#1956: FILE: drivers/net/failsafe/failsafe_private.h:183:
+#define SUBOPS(s, ops) \
+ (ETH(s)->dev_ops->ops)
total: 0 errors, 0 warnings, 1992 lines checked
^ permalink raw reply [flat|nested] only message in thread