automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw89460 [PATCH 2/2] [RFC]: ethdev: manage meter API object handles by the drivers
       [not found] <20210318085815.804896-2-lizh@nvidia.com>
@ 2021-03-18  8:59 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-03-18  8:59 UTC (permalink / raw)
  To: test-report; +Cc: Li Zhang

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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#132: FILE: lib/librte_ethdev/rte_mtr.c:60:
+#define RTE_MTR_FUNC_PTR(port_id, func)			\
+({							\
+	const struct rte_mtr_ops *ops =			\
+		rte_mtr_ops_get(port_id, error);	\
+	if (ops == NULL)				\
+		return NULL;				\
+							\
+	if (ops->func == NULL)				\
+		return NULL;				\
+							\
+	ops->func;					\
+})

total: 0 errors, 1 warnings, 591 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-18  8:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210318085815.804896-2-lizh@nvidia.com>
2021-03-18  8:59 ` [dpdk-test-report] |WARNING| pw89460 [PATCH 2/2] [RFC]: ethdev: manage meter API object handles by the drivers checkpatch

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).