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 5C82DA046B for ; Thu, 27 Jun 2019 10:03:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 54BC82B98; Thu, 27 Jun 2019 10:03:56 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 964EA2B99; Thu, 27 Jun 2019 10:03:54 +0200 (CEST) In-Reply-To: <839e2957865b87e74bb52d16eab0a571a0049d8e.1561620219.git.xuanziyang2@huawei.com> References: <839e2957865b87e74bb52d16eab0a571a0049d8e.1561620219.git.xuanziyang2@huawei.com> To: test-report@dpdk.org Cc: Ziyang Xuan Message-Id: <20190627080354.964EA2B99@dpdk.org> Date: Thu, 27 Jun 2019 10:03:54 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw55442 [PATCH v6 04/15] net/hinic/base: add support for cmdq mechanism 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/55442 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'wq' - possible side-effects? #180: FILE: drivers/net/hinic/base/hinic_pmd_cmdq.c:143: +#define WQE_NUM_WQEBBS(wqe_size, wq) \ + ((u16)(ALIGN((u32)(wqe_size), (wq)->wqebb_size) / (wq)->wqebb_size)) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'cmdq' - possible side-effects? #183: FILE: drivers/net/hinic/base/hinic_pmd_cmdq.c:146: +#define cmdq_to_cmdqs(cmdq) container_of((cmdq) - (cmdq)->cmdq_type, \ + struct hinic_cmdqs, cmdq[0]) total: 0 errors, 0 warnings, 2 checks, 1091 lines checked