|WARNING| pw152912 [PATCH v2 4/4] drivers: use macro to embed information in binaries
checkpatch at dpdk.org
checkpatch at dpdk.org
Tue Apr 15 03:22:09 CEST 2025
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/152912
_coding style issues_
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#367: FILE: drivers/bus/auxiliary/bus_auxiliary_driver.h:165:
+#define RTE_PMD_REGISTER_AUXILIARY(nm, auxiliary_drv, idx) \
RTE_INIT(auxiliaryinitfn_ ##nm) \
{ \
(auxiliary_drv).driver.name = RTE_STR(nm); \
rte_auxiliary_register(&(auxiliary_drv)); \
} \
+ RTE_PMD_EXPORT_NAME(nm, idx)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#397: FILE: drivers/bus/cdx/bus_cdx_driver.h:149:
+#define RTE_PMD_REGISTER_CDX(nm, cdx_drv, idx) \
RTE_INIT(cdxinitfn_ ##nm) \
{\
(cdx_drv).driver.name = RTE_STR(nm);\
rte_cdx_register(&cdx_drv); \
} \
+ RTE_PMD_EXPORT_NAME(nm, idx)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#417: FILE: drivers/bus/dpaa/bus_dpaa_driver.h:242:
+#define RTE_PMD_REGISTER_DPAA(nm, dpaa_drv, idx) \
RTE_INIT(dpaainitfn_ ##nm) \
{\
(dpaa_drv).driver.name = RTE_STR(nm);\
rte_dpaa_driver_register(&dpaa_drv); \
} \
+RTE_PMD_EXPORT_NAME(nm, idx)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#437: FILE: drivers/bus/fslmc/bus_fslmc_driver.h:202:
+#define RTE_PMD_REGISTER_DPAA2(nm, dpaa2_drv, idx) \
RTE_INIT(dpaa2initfn_ ##nm) \
{\
(dpaa2_drv).driver.name = RTE_STR(nm);\
rte_fslmc_driver_register(&dpaa2_drv); \
} \
+RTE_PMD_EXPORT_NAME(nm, idx)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#453: FILE: drivers/bus/fslmc/bus_fslmc_driver.h:233:
+#define RTE_PMD_REGISTER_DPAA2_OBJECT(nm, dpaa2_obj, idx) \
RTE_INIT(dpaa2objinitfn_ ##nm) \
{\
(dpaa2_obj).name = RTE_STR(nm);\
rte_fslmc_object_register(&dpaa2_obj); \
} \
+RTE_PMD_EXPORT_NAME(nm, idx)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#535: FILE: drivers/bus/pci/bus_pci_driver.h:168:
+#define RTE_PMD_REGISTER_PCI(nm, pci_drv, idx) \
RTE_INIT(pciinitfn_ ##nm) \
{\
(pci_drv).driver.name = RTE_STR(nm);\
rte_pci_register(&pci_drv); \
} \
+RTE_PMD_EXPORT_NAME(nm, idx)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#577: FILE: drivers/bus/uacce/bus_uacce_driver.h:242:
+#define RTE_PMD_REGISTER_UACCE(nm, uacce_drv, idx) \
RTE_INIT(uacceinitfn_ ##nm) \
{\
(uacce_drv).driver.name = RTE_STR(nm);\
rte_uacce_register(&uacce_drv); \
} \
+ RTE_PMD_EXPORT_NAME(nm, idx)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#619: FILE: drivers/bus/vmbus/bus_vmbus_driver.h:94:
+#define RTE_PMD_REGISTER_VMBUS(nm, vmbus_drv, idx) \
RTE_INIT(vmbusinitfn_ ##nm) \
{ \
(vmbus_drv).driver.name = RTE_STR(nm); \
rte_vmbus_register(&vmbus_drv); \
} \
+ RTE_PMD_EXPORT_NAME(nm, idx)
total: 8 errors, 0 warnings, 1486 lines checked
More information about the test-report
mailing list