|WARNING| pw137172 [RFC v4 1/6] eal: add static per-lcore memory allocation facility

checkpatch at dpdk.org checkpatch at dpdk.org
Sun Feb 25 16:13:37 CET 2024


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

_coding style issues_


WARNING:TYPO_SPELLING: 'varible' may be misspelled - perhaps 'variable'?
#205: FILE: doc/api/doxy-api-index.md:102:
+  [lcore-varible](@ref rte_lcore_var.h),

WARNING:TYPO_SPELLING: 'endcode' may be misspelled - perhaps 'encode'?
#450: FILE: lib/eal/include/rte_lcore_var.h:138:
+ * ndcode

WARNING:TYPO_SPELLING: 'endcode' may be misspelled - perhaps 'encode'?
#464: FILE: lib/eal/include/rte_lcore_var.h:152:
+ * ndcode

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

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#547: FILE: lib/eal/include/rte_lcore_var.h:235:
+#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
#553: FILE: lib/eal/include/rte_lcore_var.h:241:
+#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
#575: FILE: lib/eal/include/rte_lcore_var.h:263:
+#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
#591: FILE: lib/eal/include/rte_lcore_var.h:279:
+#define RTE_LCORE_VAR_INIT(name)					\
+	RTE_INIT(rte_lcore_var_init_ ## name)				\
+	{								\
+		RTE_LCORE_VAR_ALLOC(name);				\
+	}

WARNING:TYPO_SPELLING: 'identifer' may be misspelled - perhaps 'identifier'?
#657: FILE: lib/eal/include/rte_lcore_var.h:345:
+ * The pointer returned is only an opaque identifer of the variable. To

total: 5 errors, 4 warnings, 481 lines checked


More information about the test-report mailing list