|WARNING| pw163846 [PATCH v3 08/20] net/txgbe: fix link flow control registers for Amber-Lite
checkpatch at dpdk.org
checkpatch at dpdk.org
Sat May 9 13:28:37 CEST 2026
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/163846
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'last' - possible side-effects?
#144: FILE: drivers/net/txgbe/txgbe_ethdev.c:2267:
+#define TXGBE_UPDATE_COUNTER_32BIT_GENERIC(reg, last, count, reset) \
+ do { \
+ uint32_t current = rd32(hw, reg); \
+ if ((current) < (last)) \
+ current += 0x100000000ULL; \
+ if (reset) \
+ (last) = current; \
+ (count) = (uint32_t)((current) - (last)); \
+ } while (0)
total: 0 errors, 0 warnings, 1 checks, 78 lines checked
More information about the test-report
mailing list