|WARNING| pw134036 [PATCH] ethdev: add extension keyword to statement expression macro

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Nov 9 21:14:28 CET 2023


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#104: FILE: lib/ethdev/rte_tm.c:43:
+#define RTE_TM_FUNC(port_id, func)			\
+__extension__ ({					\
 	const struct rte_tm_ops *ops =			\
 		rte_tm_ops_get(port_id, error);		\
+	if (ops == NULL)				\
 		return -rte_errno;			\
 							\
 	if (ops->func == NULL)				\

total: 0 errors, 1 warnings, 40 lines checked


More information about the test-report mailing list