From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id B0C75695C; Tue, 14 Mar 2017 10:18:02 +0100 (CET) In-Reply-To: <1489179491-9401-3-git-send-email-rkerur@gmail.com> References: <1489179491-9401-3-git-send-email-rkerur@gmail.com> To: test-report@dpdk.org Cc: Ravi Kerur Message-Id: <20170314091802.B0C75695C@dpdk.org> Date: Tue, 14 Mar 2017 10:18:02 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw21695 [PATCH v6 2/3] examples/l3fwd: add config file support for lpm X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2017 09:18:02 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/21695 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #77: FILE: examples/l3fwd/l3fwd.h:104: +#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, 607 lines checked