|WARNING| pw145965 [PATCH v12 1/7] eal: add static per-lcore memory allocation facility

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Oct 15 09:05:46 CEST 2024


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

_coding style issues_


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

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#857: FILE: lib/eal/include/rte_lcore_var.h:237:
+#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
#865: FILE: lib/eal/include/rte_lcore_var.h:245:
+#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
#893: FILE: lib/eal/include/rte_lcore_var.h:273:
+#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
#913: FILE: lib/eal/include/rte_lcore_var.h:293:
+#define RTE_LCORE_VAR_INIT(name)					\
+	RTE_INIT(rte_lcore_var_init_ ## name)				\
+	{								\
+		RTE_LCORE_VAR_ALLOC(name);				\
+	}

total: 5 errors, 0 warnings, 686 lines checked
Please use __rte_cache_aligned only for struct or union types alignment.


More information about the test-report mailing list