From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 8C2EF1B1EE; Tue, 23 Jan 2018 15:26:42 +0100 (CET) In-Reply-To: <20180123135910.10755-2-shreyansh.jain@nxp.com> References: <20180123135910.10755-2-shreyansh.jain@nxp.com> To: test-report@dpdk.org Cc: Shreyansh Jain Message-Id: <20180123142642.8C2EF1B1EE@dpdk.org> Date: Tue, 23 Jan 2018 15:26:42 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw34351 [PATCH v2 01/10] rawdev: introduce raw device library support 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, 23 Jan 2018 14:26:42 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/34351 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #854: FILE: lib/librte_rawdev/rte_rawdev_pmd.h:46: +#define RTE_RAWDEV_VALID_DEVID_OR_ERR_RET(dev_id, retval) do { \ + if (!rte_rawdev_pmd_is_valid_dev((dev_id))) { \ + RTE_RDEV_ERR("Invalid dev_id=%d", dev_id); \ + return retval; \ + } \ +} while (0) WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #861: FILE: lib/librte_rawdev/rte_rawdev_pmd.h:53: +#define RTE_RAWDEV_VALID_DEVID_OR_RET(dev_id) do { \ + if (!rte_rawdev_pmd_is_valid_dev((dev_id))) { \ + RTE_RDEV_ERR("Invalid dev_id=%d", dev_id); \ + return; \ + } \ +} while (0) total: 0 errors, 2 warnings, 1101 lines checked