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 15E2DA04FD for ; Tue, 14 Jan 2020 06:19:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F2F791C2F9; Tue, 14 Jan 2020 06:19:15 +0100 (CET) Received: by dpdk.org (Postfix, from userid 1017) id 3B8131C2F9; Tue, 14 Jan 2020 06:19:14 +0100 (CET) In-Reply-To: <20200114051435.46093-11-ajit.khaparde@broadcom.com> References: <20200114051435.46093-11-ajit.khaparde@broadcom.com> To: test-report@dpdk.org Cc: Ajit Khaparde Message-Id: <20200114051914.3B8131C2F9@dpdk.org> Date: Tue, 14 Jan 2020 06:19:14 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw64612 [PATCH v3 10/10] net/bnxt: fix calculation of max rings 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/64612 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'bp' - possible side-effects? #88: FILE: drivers/net/bnxt/bnxt.h:626: +#define BNXT_MAX_RX_RINGS(bp) \ (BNXT_STINGRAY(bp) ? RTE_MIN(RTE_MIN(bp->max_rx_rings, \ MAX_STINGRAY_RINGS), \ + bp->max_stat_ctx / 2U) : \ + RTE_MIN(bp->max_rx_rings, \ + bp->max_stat_ctx / 2U)) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'bp' - possible side-effects? #96: FILE: drivers/net/bnxt/bnxt.h:632: +#define BNXT_MAX_TX_RINGS(bp) \ + (RTE_MIN((bp)->max_tx_rings, BNXT_MAX_RX_RINGS(bp))) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'bp' - possible side-effects? #99: FILE: drivers/net/bnxt/bnxt.h:635: +#define BNXT_MAX_RINGS(bp) \ + (RTE_MIN((((bp)->max_cp_rings - BNXT_NUM_ASYNC_CPR(bp)) / 2U), \ + BNXT_MAX_TX_RINGS(bp))) total: 0 errors, 0 warnings, 3 checks, 22 lines checked