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 53BF4A0032 for ; Thu, 16 Dec 2021 16:03:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 462A640DF7; Thu, 16 Dec 2021 16:03:59 +0100 (CET) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 9F68B40696 for ; Thu, 16 Dec 2021 16:03:57 +0100 (CET) Received: by dpdk.org (Postfix, from userid 65534) id 8C546123543; Thu, 16 Dec 2021 16:03:57 +0100 (CET) Subject: |WARNING| pw105161 [PATCH v1 1/2] examples/l3fwd: add config file support for LPM/FIB In-Reply-To: <20211216150104.860924-2-sean.morrissey@intel.com> References: <20211216150104.860924-2-sean.morrissey@intel.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Sean Morrissey Message-Id: <20211216150357.8C546123543@dpdk.org> Date: Thu, 16 Dec 2021 16:03:57 +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/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