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| pw152936 [PATCH v3 4/4] drivers: use macro to embed information in binaries
Date: Wed, 16 Apr 2025 00:32:56 +0200 (CEST)	[thread overview]
Message-ID: <20250415223256.A07EE124151@dpdk.org> (raw)
In-Reply-To: <1744756297-21038-5-git-send-email-andremue@linux.microsoft.com>

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

_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 22:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1744756297-21038-5-git-send-email-andremue@linux.microsoft.com>
2025-04-15 22:00 ` |SUCCESS| pw152933-152936 " qemudev
2025-04-15 22:05 ` qemudev
2025-04-15 22:32 ` checkpatch [this message]
2025-04-15 23:06 ` |SUCCESS| pw152933-152936 [PATCH] [v3,4/4] drivers: use macro to emb dpdklab
2025-04-15 23:06 ` dpdklab
2025-04-15 23:17 ` |PENDING| " dpdklab
2025-04-15 23:24 ` |SUCCESS| " dpdklab
2025-04-15 23:27 ` dpdklab
2025-04-15 23:29 ` dpdklab
2025-04-15 23:39 ` dpdklab
2025-04-15 23:40 ` dpdklab
2025-04-15 23:43 ` |SUCCESS| pw152936 [PATCH v3 4/4] drivers: use macro to embed information in binaries 0-day Robot
2025-04-15 23:48 ` |SUCCESS| pw152933-152936 [PATCH] [v3,4/4] drivers: use macro to emb dpdklab
2025-04-16  0:25 ` dpdklab
2025-04-16  0:26 ` dpdklab
2025-04-16  0:27 ` dpdklab
2025-04-16  0:31 ` dpdklab
2025-04-16  1:41 ` dpdklab
2025-04-16  2:34 ` dpdklab
2025-04-16  5:46 ` dpdklab
2025-04-16  6:21 ` 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=20250415223256.A07EE124151@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).