[dpdk-test-report] |WARNING| pw41275 [02/31] net/bnxt: add Tx batching support

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Jun 19 23:31:52 CEST 2018


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

_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