* |WARNING| pw105161 [PATCH v1 1/2] examples/l3fwd: add config file support for LPM/FIB
[not found] <20211216150104.860924-2-sean.morrissey@intel.com>
@ 2021-12-16 15:03 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-12-16 15:03 UTC (permalink / raw)
To: test-report; +Cc: Sean Morrissey
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/105161
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#103: 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, 787 lines checked
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-16 15:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20211216150104.860924-2-sean.morrissey@intel.com>
2021-12-16 15:03 ` |WARNING| pw105161 [PATCH v1 1/2] examples/l3fwd: add config file support for LPM/FIB checkpatch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).