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 23CB7A0A0C for ; Fri, 2 Jul 2021 15:22:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C1F2413D3; Fri, 2 Jul 2021 15:22:57 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 266FE413D0 for ; Fri, 2 Jul 2021 15:22:56 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 09551122E89; Fri, 2 Jul 2021 15:22:56 +0200 (CEST) In-Reply-To: <1625231891-2963-1-git-send-email-fengchengwen@huawei.com> References: <1625231891-2963-1-git-send-email-fengchengwen@huawei.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Chengwen Feng Message-Id: <20210702132256.09551122E89@dpdk.org> Date: Fri, 2 Jul 2021 15:22:56 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw95217 [PATCH] dmadev: introduce DMA device library 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/95217 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #1640: FILE: lib/dmadev/rte_dmadev_pmd.h:35: +#define RTE_DMADEV_VALID_DEVID_OR_ERR_RET(dev_id, retval) do { \ + if (!rte_dmadev_pmd_is_valid_dev((dev_id))) { \ + RTE_DMADEV_LOG(ERR, "Invalid dev_id=%d", dev_id); \ + return retval; \ + } \ +} while (0) WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #1647: FILE: lib/dmadev/rte_dmadev_pmd.h:42: +#define RTE_DMADEV_VALID_DEVID_OR_RET(dev_id) do { \ + if (!rte_dmadev_pmd_is_valid_dev((dev_id))) { \ + RTE_DMADEV_LOG(ERR, "Invalid dev_id=%d", dev_id); \ + return; \ + } \ +} while (0) total: 0 errors, 2 warnings, 1729 lines checked