[dpdk-test-report] |WARNING| pw89460 [PATCH 2/2] [RFC]: ethdev: manage meter API object handles by the drivers

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Mar 18 09:59:34 CET 2021


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


More information about the test-report mailing list