|WARNING| pw152617 [PATCH v3 3/9] net/ixgbe/base: correct definition of macro

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Mar 27 15:54:11 CET 2025


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

_coding style issues_


ERROR:SPACING: space required before the open parenthesis '('
#117: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:86:
+#define IXGBE_LE32_TO_CPUS(_i) do { *_i = rte_le_to_cpu_32(*_i); } while(0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse '_i' - possible side-effects?
#117: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:86:
+#define IXGBE_LE32_TO_CPUS(_i) do { *_i = rte_le_to_cpu_32(*_i); } while(0)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument '_i' may be better as '(_i)' to avoid precedence issues
#117: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:86:
+#define IXGBE_LE32_TO_CPUS(_i) do { *_i = rte_le_to_cpu_32(*_i); } while(0)

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#117: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:86:
+#define IXGBE_LE32_TO_CPUS(_i) do { *_i = rte_le_to_cpu_32(*_i); } while(0)

total: 1 errors, 1 warnings, 2 checks, 32 lines checked


More information about the test-report mailing list