automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw111582 [PATCH v2 3/4] ethdev: get meter profile/policy objects
       [not found] <20220522105102.1692526-4-akozyrev@nvidia.com>
@ 2022-05-22 10:52 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2022-05-22 10:52 UTC (permalink / raw)
  To: test-report; +Cc: Alexander Kozyrev

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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#198: FILE: lib/ethdev/rte_mtr.c:60:
+#define RTE_MTR_HNDL_FUNC(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) {			\
+		rte_mtr_error_set(error,		\
+			ENOSYS,				\
+			RTE_MTR_ERROR_TYPE_UNSPECIFIED,	\
+			NULL,				\
+			rte_strerror(ENOSYS));		\
+		return NULL;				\
+	}						\
+							\
+	ops->func;					\
+})

total: 0 errors, 1 warnings, 189 lines checked

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

only message in thread, other threads:[~2022-05-22 10:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220522105102.1692526-4-akozyrev@nvidia.com>
2022-05-22 10:52 ` |WARNING| pw111582 [PATCH v2 3/4] ethdev: get meter profile/policy objects 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).