From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AD176A04A2 for ; Fri, 4 Feb 2022 21:00:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9C594013F; Fri, 4 Feb 2022 21:00:48 +0100 (CET) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id CACD340041 for ; Fri, 4 Feb 2022 21:00:47 +0100 (CET) Received: by dpdk.org (Postfix, from userid 65534) id C2BE0120715; Fri, 4 Feb 2022 21:00:47 +0100 (CET) Subject: |WARNING| pw106874 [PATCH v5 1/2] examples/l3fwd: add config file support for LPM/FIB In-Reply-To: <20220204195905.449192-2-sean.morrissey@intel.com> References: <20220204195905.449192-2-sean.morrissey@intel.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Sean Morrissey Message-Id: <20220204200047.C2BE0120715@dpdk.org> Date: Fri, 4 Feb 2022 21:00:47 +0100 (CET) X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/106874 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #105: 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, 816 lines checked