[dpdk-test-report] |WARNING| pw41865 [v2, 02/23] net/bnxt: add Tx batching support
checkpatch at dpdk.org
checkpatch at dpdk.org
Thu Jun 28 22:17:45 CEST 2018
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/41865
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'idx' - possible side-effects?
#42: FILE: drivers/net/bnxt/bnxt_cpr.h:32:
+#define NEXT_CMPL(cpr, idx, v, inc) do { \
+ (idx) += (inc); \
+ if (unlikely((idx) == (cpr)->cp_ring_struct->ring_size)) { \
+ (v) = !(v); \
+ (idx) = 0; \
+ } \
+} while (0)
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'v' - possible side-effects?
#42: FILE: drivers/net/bnxt/bnxt_cpr.h:32:
+#define NEXT_CMPL(cpr, idx, v, inc) do { \
+ (idx) += (inc); \
+ if (unlikely((idx) == (cpr)->cp_ring_struct->ring_size)) { \
+ (v) = !(v); \
+ (idx) = 0; \
+ } \
+} while (0)
total: 0 errors, 0 warnings, 2 checks, 180 lines checked
More information about the test-report
mailing list