[dpdk-test-report] |WARNING| pw96355 [PATCH] eal: add macro to swap two numbers

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Jul 28 17:22:39 CEST 2021


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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#112: FILE: lib/eal/include/rte_common.h:814:
+#define RTE_SWAP(a, b) \
+	__extension__ ({ \
+		typeof (a) _a = a; \
+		a = b; \
+		b = _a; \
+	})

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#114: FILE: lib/eal/include/rte_common.h:816:
+		typeof (a) _a = a; \

total: 1 errors, 1 warnings, 27 lines checked


More information about the test-report mailing list