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 A0070A0C43 for ; Mon, 18 Oct 2021 20:04:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 82E1F410E5; Mon, 18 Oct 2021 20:04:32 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 68B73410E4 for ; Mon, 18 Oct 2021 20:04:31 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 643B8121D26; Mon, 18 Oct 2021 20:04:31 +0200 (CEST) In-Reply-To: <20211018180252.14106-7-viacheslavo@nvidia.com> References: <20211018180252.14106-7-viacheslavo@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Viacheslav Ovsiienko Message-Id: <20211018180431.643B8121D26@dpdk.org> Date: Mon, 18 Oct 2021 20:04:31 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw102086 [PATCH v6 6/6] app/testpmd: add flex item CLI commands 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 Sender: "test-report" Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/102086 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #288: FILE: app/test-pmd/cmd_flex_item.c:106: +#define FLEX_FIELD_GET(fm, t) \ +do { \ + if (!strncmp(key, # fm, strlen(# fm))) { \ + if (json_is_real(je)) \ + fld->fm = (t) json_real_value(je); \ + else if (json_is_integer(je)) \ + fld->fm = (t) json_integer_value(je); \ + else \ + return -EINVAL; \ + } \ +} while (0) total: 0 errors, 1 warnings, 1068 lines checked