[dpdk-test-report] |WARNING| pw101228 [PATCH v5 5/5] app/testpmd: add flex item CLI commands
checkpatch at dpdk.org
checkpatch at dpdk.org
Tue Oct 12 14:57:22 CEST 2021
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/101228
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#640: FILE: app/test-pmd/cmdline_flow.c:9119:
+#define FLEX_FIELD_GET(fm, t) \
+do { \
+ if (!strncmp(key, # fm, strlen(# fm))) { \
+ if (json_is_real(je)) \
+ fld->fm = (t) json_real_value(je); \
+ else if (json_is_integer(je)) \
+ fld->fm = (t) json_integer_value(je); \
+ else \
+ return -EINVAL; \
+ } \
+} while (0)
total: 0 errors, 1 warnings, 1053 lines checked
More information about the test-report
mailing list