|WARNING| pw147220 [PATCH v17 1/8] eal: add static per-lcore memory allocation facility

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Oct 25 10:52:52 CEST 2024


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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#651: FILE: lib/eal/include/rte_lcore_var.h:35:
+#define RTE_LCORE_VAR_HANDLE_TYPE(type)		\
+	type *

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#666: FILE: lib/eal/include/rte_lcore_var.h:50:
+#define RTE_LCORE_VAR_HANDLE(type, name)	\
+	RTE_LCORE_VAR_HANDLE_TYPE(type) name

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#674: FILE: lib/eal/include/rte_lcore_var.h:58:
+#define RTE_LCORE_VAR_ALLOC_SIZE_ALIGN(handle, size, align)	\
+	handle = rte_lcore_var_alloc(size, align)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#702: FILE: lib/eal/include/rte_lcore_var.h:86:
+#define RTE_LCORE_VAR_INIT_SIZE_ALIGN(name, size, align)		\
+	RTE_INIT(rte_lcore_var_init_ ## name)				\
+	{								\
+		RTE_LCORE_VAR_ALLOC_SIZE_ALIGN(name, size, align);	\
+	}

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#722: FILE: lib/eal/include/rte_lcore_var.h:106:
+#define RTE_LCORE_VAR_INIT(name)					\
+	RTE_INIT(rte_lcore_var_init_ ## name)				\
+	{								\
+		RTE_LCORE_VAR_ALLOC(name);				\
+	}

total: 5 errors, 0 warnings, 474 lines checked


More information about the test-report mailing list