automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Andre Muezerie <andremue@linux.microsoft.com>
Subject: |WARNING| pw152912 [PATCH v2 4/4] drivers: use macro to embed information in binaries
Date: Tue, 15 Apr 2025 03:22:09 +0200 (CEST)	[thread overview]
Message-ID: <20250415012209.9B5D3124124@dpdk.org> (raw)
In-Reply-To: <1744680096-17683-5-git-send-email-andremue@linux.microsoft.com>

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

  parent reply	other threads:[~2025-04-15  1:22 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1744680096-17683-5-git-send-email-andremue@linux.microsoft.com>
2025-04-15  0:48 ` |SUCCESS| pw152910-152912 " qemudev
2025-04-15  0:53 ` qemudev
2025-04-15  1:22 ` checkpatch [this message]
2025-04-15  1:59 ` |SUCCESS| pw152910-152912 [PATCH] [v2,4/4] drivers: use macro to emb dpdklab
2025-04-15  2:06 ` dpdklab
2025-04-15  2:08 ` |PENDING| " dpdklab
2025-04-15  2:09 ` dpdklab
2025-04-15  2:15 ` dpdklab
2025-04-15  2:18 ` |SUCCESS| " dpdklab
2025-04-15  2:20 ` dpdklab
2025-04-15  2:23 ` |SUCCESS| pw152912 [PATCH v2 4/4] drivers: use macro to embed information in binaries 0-day Robot
2025-04-15  2:29 ` |PENDING| pw152910-152912 [PATCH] [v2,4/4] drivers: use macro to emb dpdklab
2025-04-15  2:30 ` |SUCCESS| " dpdklab
2025-04-15  2:31 ` dpdklab
2025-04-15  2:43 ` dpdklab
2025-04-15  3:14 ` dpdklab
2025-04-15  3:15 ` dpdklab
2025-04-15  3:42 ` dpdklab
2025-04-15  3:49 ` dpdklab
2025-04-15  5:10 ` dpdklab
2025-04-15 20:22 ` dpdklab
2025-04-15 20:56 ` dpdklab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250415012209.9B5D3124124@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=andremue@linux.microsoft.com \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).