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 F30C2A0577 for ; Mon, 13 Apr 2020 21:44:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5F7801BEA6; Mon, 13 Apr 2020 21:44:38 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 605971C066; Mon, 13 Apr 2020 21:44:37 +0200 (CEST) In-Reply-To: <1586806811-21736-8-git-send-email-venkatkumar.duvvuru@broadcom.com> References: <1586806811-21736-8-git-send-email-venkatkumar.duvvuru@broadcom.com> To: test-report@dpdk.org Cc: Venkat Duvvuru Message-Id: <20200413194437.605971C066@dpdk.org> Date: Mon, 13 Apr 2020 21:44:37 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw68330 [PATCH v2 07/34] net/bnxt: add initial tf core resource mgmt 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: , Errors-To: test-report-bounces@dpdk.org Sender: "test-report" Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/68330 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'hquery' - possible side-effects? #347: FILE: drivers/net/bnxt/tf_core/tf_rm.c:29: +#define TF_RM_CHECK_HW_ALLOC(hquery, dir, hcapi_type, def_value, eflag) do { \ + if ((dir) == TF_DIR_RX) { \ + if ((hquery)->hw_query[(hcapi_type)].max != def_value ## _RX) \ + *(eflag) |= 1 << (hcapi_type); \ + } else { \ + if ((hquery)->hw_query[(hcapi_type)].max != def_value ## _TX) \ + *(eflag) |= 1 << (hcapi_type); \ + } \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'hcapi_type' - possible side-effects? #347: FILE: drivers/net/bnxt/tf_core/tf_rm.c:29: +#define TF_RM_CHECK_HW_ALLOC(hquery, dir, hcapi_type, def_value, eflag) do { \ + if ((dir) == TF_DIR_RX) { \ + if ((hquery)->hw_query[(hcapi_type)].max != def_value ## _RX) \ + *(eflag) |= 1 << (hcapi_type); \ + } else { \ + if ((hquery)->hw_query[(hcapi_type)].max != def_value ## _TX) \ + *(eflag) |= 1 << (hcapi_type); \ + } \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eflag' - possible side-effects? #347: FILE: drivers/net/bnxt/tf_core/tf_rm.c:29: +#define TF_RM_CHECK_HW_ALLOC(hquery, dir, hcapi_type, def_value, eflag) do { \ + if ((dir) == TF_DIR_RX) { \ + if ((hquery)->hw_query[(hcapi_type)].max != def_value ## _RX) \ + *(eflag) |= 1 << (hcapi_type); \ + } else { \ + if ((hquery)->hw_query[(hcapi_type)].max != def_value ## _TX) \ + *(eflag) |= 1 << (hcapi_type); \ + } \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'squery' - possible side-effects? #369: FILE: drivers/net/bnxt/tf_core/tf_rm.c:51: +#define TF_RM_CHECK_SRAM_ALLOC(squery, dir, hcapi_type, def_value, eflag) do { \ + if ((dir) == TF_DIR_RX) { \ + if ((squery)->sram_query[(hcapi_type)].max != def_value ## _RX)\ + *(eflag) |= 1 << (hcapi_type); \ + } else { \ + if ((squery)->sram_query[(hcapi_type)].max != def_value ## _TX)\ + *(eflag) |= 1 << (hcapi_type); \ + } \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'hcapi_type' - possible side-effects? #369: FILE: drivers/net/bnxt/tf_core/tf_rm.c:51: +#define TF_RM_CHECK_SRAM_ALLOC(squery, dir, hcapi_type, def_value, eflag) do { \ + if ((dir) == TF_DIR_RX) { \ + if ((squery)->sram_query[(hcapi_type)].max != def_value ## _RX)\ + *(eflag) |= 1 << (hcapi_type); \ + } else { \ + if ((squery)->sram_query[(hcapi_type)].max != def_value ## _TX)\ + *(eflag) |= 1 << (hcapi_type); \ + } \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eflag' - possible side-effects? #369: FILE: drivers/net/bnxt/tf_core/tf_rm.c:51: +#define TF_RM_CHECK_SRAM_ALLOC(squery, dir, hcapi_type, def_value, eflag) do { \ + if ((dir) == TF_DIR_RX) { \ + if ((squery)->sram_query[(hcapi_type)].max != def_value ## _RX)\ + *(eflag) |= 1 << (hcapi_type); \ + } else { \ + if ((squery)->sram_query[(hcapi_type)].max != def_value ## _TX)\ + *(eflag) |= 1 << (hcapi_type); \ + } \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'dtype' - possible side-effects? #390: FILE: drivers/net/bnxt/tf_core/tf_rm.c:72: +#define TF_RESC_RSVD(dir, type, dtype) do { \ + if ((dir) == TF_DIR_RX) \ + (dtype) = type ## _RX; \ + else \ + (dtype) = type ## _TX; \ + } while (0) total: 0 errors, 0 warnings, 7 checks, 2339 lines checked