|WARNING| pw134405 [PATCH 1/4] lib: add extension keyword to statement expressions
checkpatch at dpdk.org
checkpatch at dpdk.org
Thu Nov 16 00:03:22 CET 2023
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/134405
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#134: 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, 84 lines checked
More information about the test-report
mailing list