|WARNING| pw108324 [PATCH v3 2/2] net/cnxk: align perfetchs to CN10K cache model

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Feb 24 19:40:25 CET 2022


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects?
#155: FILE: drivers/net/cnxk/cn10k_rx.h:39:
+#define CQE_PTR_DIFF(b, i, o, f)                                               \
+	(((f) & NIX_RX_VWQE_F) ?                                               \
+		 (uint64_t *)(((uintptr_t)((uint64_t *)(b))[i]) - (o)) :       \
+		       (uint64_t *)(((uintptr_t)(b)) + CQE_SZ(i) - (o)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i' - possible side-effects?
#155: FILE: drivers/net/cnxk/cn10k_rx.h:39:
+#define CQE_PTR_DIFF(b, i, o, f)                                               \
+	(((f) & NIX_RX_VWQE_F) ?                                               \
+		 (uint64_t *)(((uintptr_t)((uint64_t *)(b))[i]) - (o)) :       \
+		       (uint64_t *)(((uintptr_t)(b)) + CQE_SZ(i) - (o)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'o' - possible side-effects?
#155: FILE: drivers/net/cnxk/cn10k_rx.h:39:
+#define CQE_PTR_DIFF(b, i, o, f)                                               \
+	(((f) & NIX_RX_VWQE_F) ?                                               \
+		 (uint64_t *)(((uintptr_t)((uint64_t *)(b))[i]) - (o)) :       \
+		       (uint64_t *)(((uintptr_t)(b)) + CQE_SZ(i) - (o)))

total: 0 errors, 0 warnings, 3 checks, 188 lines checked
Warning in drivers/net/cnxk/cn10k_rx.h:
Using rte_panic/rte_exit


More information about the test-report mailing list