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 4A789A0C53 for ; Sat, 4 Sep 2021 12:15:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 46A8140E3C; Sat, 4 Sep 2021 12:15:50 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 7875740DDD for ; Sat, 4 Sep 2021 12:15:48 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 7068C122E33; Sat, 4 Sep 2021 12:15:48 +0200 (CEST) In-Reply-To: <20210904101027.43252-5-fengchengwen@huawei.com> References: <20210904101027.43252-5-fengchengwen@huawei.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Chengwen Feng Message-Id: <20210904101548.7068C122E33@dpdk.org> Date: Sat, 4 Sep 2021 12:15:48 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw97982 [PATCH v20 4/7] dmadev: introduce DMA device library implementation 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/97982 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #146: FILE: lib/dmadev/rte_dmadev.c:31: +#define RTE_DMADEV_VALID_DEV_ID_OR_ERR_RET(dev_id, retval) do { \ + if (!rte_dmadev_is_valid_dev(dev_id)) { \ + RTE_DMADEV_LOG(ERR, "Invalid dev_id=%u", dev_id); \ + return retval; \ + } \ +} while (0) total: 0 errors, 1 warnings, 797 lines checked