|WARNING| pw152769 [PATCH v7 8/8] eal: rework function versioning macros

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Apr 3 20:11:42 CEST 2025


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

_coding style issues_


ERROR:SPACING: spaces required around that '?' (ctx:VxB)
#535: FILE: lib/eal/common/eal_export.h:20:
+	Is "use_function_versioning=true" in meson.build?)
 	                                                ^

ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros with multiple statements should be enclosed in a do - while loop
#556: FILE: lib/eal/common/eal_export.h:41:
+#define RTE_VERSION_SYMBOL(ver, type, name, args) VERSIONING_WARN \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@DPDK_" RTE_STR(ver)); \
+__rte_used type name ## _v ## ver args; \
+type name ## _v ## ver args

ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros with multiple statements should be enclosed in a do - while loop
#565: FILE: lib/eal/common/eal_export.h:50:
+#define RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args) VERSIONING_WARN \
+__asm__(".symver " RTE_STR(name) "_exp, " RTE_STR(name) "@EXPERIMENTAL") \
+__rte_used type name ## _exp args; \
+type name ## _exp args

ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros with multiple statements should be enclosed in a do - while loop
#574: FILE: lib/eal/common/eal_export.h:59:
+#define RTE_DEFAULT_SYMBOL(ver, type, name, args) VERSIONING_WARN \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@@DPDK_" RTE_STR(ver)); \
+__rte_used type name ## _v ## ver args; \
+type name ## _v ## ver args

ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros with multiple statements should be enclosed in a do - while loop
#581: FILE: lib/eal/common/eal_export.h:66:
+#define RTE_VERSION_SYMBOL(ver, type, name, args) VERSIONING_WARN \
+type name ## _v ## ver args; \
+type name ## _v ## ver args

ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros with multiple statements should be enclosed in a do - while loop
#585: FILE: lib/eal/common/eal_export.h:70:
+#define RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args) VERSIONING_WARN \
+type name ## _exp args; \
+type name ## _exp args

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#589: FILE: lib/eal/common/eal_export.h:74:
+#define RTE_DEFAULT_SYMBOL(ver, type, name, args) VERSIONING_WARN \
+type name args

total: 7 errors, 0 warnings, 516 lines checked


More information about the test-report mailing list