|WARNING| pw156097 [PATCH v2 01/43] net/nfp: fix use after free

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Aug 25 05:39:29 CEST 2025


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'var' - possible side-effects?
#115: FILE: drivers/net/nfp/nfp_mtr.c:16:
+#define	LIST_FOREACH_SAFE(var, head, field, tvar)			\
+	for ((var) = LIST_FIRST((head));				\
+	    (var) && ((tvar) = LIST_NEXT((var), field), 1);		\
+	    (var) = (tvar))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tvar' - possible side-effects?
#115: FILE: drivers/net/nfp/nfp_mtr.c:16:
+#define	LIST_FOREACH_SAFE(var, head, field, tvar)			\
+	for ((var) = LIST_FIRST((head));				\
+	    (var) && ((tvar) = LIST_NEXT((var), field), 1);		\
+	    (var) = (tvar))

total: 0 errors, 0 warnings, 2 checks, 46 lines checked


More information about the test-report mailing list