|WARNING| pw152577 [PATCH v2 4/8] net/ixgbe/base: fix compilation warnings

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Mar 26 17:06:27 CET 2025


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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#118: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:60:
+#define UNREFERENCED_PARAMETER(_p) (void)(_p)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#125: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:62:
+#define UNREFERENCED_1PARAMETER(_p) (void)(_p)

ERROR:SPACING: space required before the open parenthesis '('
#126: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:63:
+#define UNREFERENCED_2PARAMETER(_p, _q) do { (void)(_p); (void)(_q); } while(0)

ERROR:SPACING: space required before the open parenthesis '('
#128: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:65:
+	do { (void)(_p); (void)(_q); (void)(_r); } while(0)

ERROR:SPACING: space required before the open parenthesis '('
#130: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:67:
+	do { (void)(_p); (void)(_q); (void)(_r); (void)(_s); } while(0)

ERROR:SPACING: space required before the open parenthesis '('
#132: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:69:
+	do { (void)(_p); (void)(_q); (void)(_r); (void)(_s); (void)(_t); } while(0)

ERROR:SPACING: space required before the open parenthesis '('
#143: FILE: drivers/net/intel/ixgbe/base/ixgbe_osdep.h:137:
+#define IXGBE_WRITE_PCIE_WORD(hw, reg, value) do { (void)hw; (void)reg; (void)value; } while(0)

total: 7 errors, 0 warnings, 0 checks, 63 lines checked


More information about the test-report mailing list