[dpdk-test-report] |WARNING| pw71500 [PATCH v3 10/10] eal: mark old macros for blacklist/whitelist as deprecated

checkpatch at dpdk.org checkpatch at dpdk.org
Sat Jun 13 02:03:37 CEST 2020


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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#101: FILE: lib/librte_eal/include/rte_bus.h:223:
+#define RTE_BUS_SCAN_WHITELIST  \
+	_Pragma("GCC warning \"'RTE_BUS_SCAN_WHITELIST' macro is deprecated.\"") \
+	RTE_BUS_SCAN_ALLOWLIST

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#105: FILE: lib/librte_eal/include/rte_bus.h:227:
+#define RTE_BUS_SCAN_BLACKLIST	\
+	_Pragma("GCC warning \"'RTE_BUS_SCAN_BLACKLIST' macro is deprecated.\"") \
+	RTE_BUS_SCAN_BLOCKLIST

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#122: FILE: lib/librte_eal/include/rte_dev.h:77:
+#define RTE_DEV_WHITELISTED \
+	_Pragma("GCC warning \"'RTE_DEV_WHITELISTED' macro is deprecated.\"") \
+	RTE_DEV_ALLOWED

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#126: FILE: lib/librte_eal/include/rte_dev.h:81:
+#define RTE_DEV_BLACKLISTED \
+	_Pragma("GCC warning \"'RTE_DEV_BLACKLISTED' macro is deprecated.\"") \
+	RTE_DEV_BLOCKED

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#143: FILE: lib/librte_eal/include/rte_devargs.h:37:
+#define RTE_DEVTYPE_WHITELISTED_PCI \
+	_Pragma("GCC warning \"'RTE_DEVTYPE_WHITELISTED_PCI' macro is deprecated.\"") \
+	RTE_DEVTYPE_ALLOWED_PCI

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#147: FILE: lib/librte_eal/include/rte_devargs.h:41:
+#define RTE_DEVTYPE_BLACKLISTED_PCI \
+	_Pragma("GCC warning \"'RTE_DEVTYPE_BLACKLISTED_PCI' macro is deprecated.\"") \
+	RTE_DEVTYPE_BLOCKED_PCI

total: 6 errors, 0 warnings, 47 lines checked


More information about the test-report mailing list