|WARNING| pw106585 [PATCH v4 1/2] examples/l3fwd: add config file support for LPM/FIB
checkpatch at dpdk.org
checkpatch at dpdk.org
Wed Jan 26 13:46:12 CET 2022
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/106585
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#107: FILE: examples/l3fwd/l3fwd.h:69:
+#define GET_CB_FIELD(in, fd, base, lim, dlm) do { \
+ unsigned long val; \
+ char *end; \
+ errno = 0; \
+ val = strtoul((in), &end, (base)); \
+ if (errno != 0 || end[0] != (dlm) || val > (lim)) \
+ return -EINVAL; \
+ (fd) = (typeof(fd))val; \
+ (in) = end + 1; \
+} while (0)
total: 0 errors, 1 warnings, 819 lines checked
More information about the test-report
mailing list