|WARNING| pw135011 [RFC v3 01/12] eal: introduce more macro for bit definition

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Dec 11 10:54:59 CET 2023


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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#123: FILE: lib/eal/include/rte_bitops.h:92:
+#define RTE_FIELD_GET64(mask, reg) \
+		(typeof(mask))(((reg) & (mask)) >> rte_ctz64(mask))

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#134: FILE: lib/eal/include/rte_bitops.h:103:
+#define RTE_FIELD_GET32(mask, reg) \
+		(typeof(mask))(((reg) & (mask)) >> rte_ctz32(mask))

total: 2 errors, 0 warnings, 70 lines checked


More information about the test-report mailing list