* |WARNING| pw149321 [PATCH v2 2/5] net/bnxt: fix use after free
[not found] <20241219225253.782792-3-stephen@networkplumber.org>
@ 2024-12-19 22:53 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2024-12-19 22:53 UTC (permalink / raw)
To: test-report; +Cc: Stephen Hemminger
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/149321
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'var' - possible side-effects?
#116: FILE: drivers/net/bnxt/bnxt_filter.c:16:
+#define STAILQ_FOREACH_SAFE(var, head, field, tvar) \
+ for ((var) = STAILQ_FIRST((head)); \
+ (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \
+ (var) = (tvar))
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tvar' - possible side-effects?
#116: FILE: drivers/net/bnxt/bnxt_filter.c:16:
+#define STAILQ_FOREACH_SAFE(var, head, field, tvar) \
+ for ((var) = STAILQ_FIRST((head)); \
+ (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \
+ (var) = (tvar))
total: 0 errors, 0 warnings, 2 checks, 23 lines checked
^ permalink raw reply [flat|nested] only message in thread