* |WARNING| pw116893 [PATCH v5 3/7] ethdev: get meter profile/policy objects
[not found] <20220926145745.3962600-4-akozyrev@nvidia.com>
@ 2022-09-26 14:59 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2022-09-26 14:59 UTC (permalink / raw)
To: test-report; +Cc: Alexander Kozyrev
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/116893
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#209: FILE: lib/ethdev/rte_mtr.c:59:
+#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, 198 lines checked
^ permalink raw reply [flat|nested] only message in thread