From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5CA40A09F6 for ; Fri, 18 Dec 2020 09:03:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C97B0CACE; Fri, 18 Dec 2020 09:03:13 +0100 (CET) Received: by dpdk.org (Postfix, from userid 1017) id 18AE8CACF; Fri, 18 Dec 2020 09:03:13 +0100 (CET) In-Reply-To: <20201218074736.93999-2-chenbo.xia@intel.com> References: <20201218074736.93999-2-chenbo.xia@intel.com> To: test-report@dpdk.org Cc: Chenbo Xia Message-Id: <20201218080313.18AE8CACF@dpdk.org> Date: Fri, 18 Dec 2020 09:03:13 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw85400 [PATCH 1/8] lib: introduce emudev library 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: , Errors-To: test-report-bounces@dpdk.org Sender: "test-report" Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/85400 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #630: FILE: lib/librte_emudev/rte_emudev.h:20: +#define RTE_EMU_CHECK_VALID_DEVID_ERR(dev_id) do { \ + if (!rte_emudev_is_valid_id(dev_id)) { \ + RTE_EMUDEV_LOG(ERR, "Invalid dev_id=%u ", dev_id); \ + return -ENODEV; \ + } \ +} while (0) WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #637: FILE: lib/librte_emudev/rte_emudev.h:27: +#define RTE_EMU_CHECK_VALID_DEVID(dev_id) do { \ + if (!rte_emudev_is_valid_id(dev_id)) { \ + RTE_EMUDEV_LOG(ERR, "Invalid dev_id=%u ", dev_id); \ + return; \ + } \ +} while (0) total: 0 errors, 2 warnings, 1000 lines checked