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 D1EE4A0577 for ; Mon, 13 Apr 2020 16:54:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B98082B96; Mon, 13 Apr 2020 16:54:18 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 236811BED7; Mon, 13 Apr 2020 16:54:17 +0200 (CEST) In-Reply-To: <20200413145342.2212-2-dongz@mellanox.com> References: <20200413145342.2212-2-dongz@mellanox.com> To: test-report@dpdk.org Cc: Dong Zhou Message-Id: <20200413145417.236811BED7@dpdk.org> Date: Mon, 13 Apr 2020 16:54:17 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw68273 [PATCH 1/2] net/mlx5: modify ext-counter memory allocation 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/68273 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pool' - possible side-effects? #99: FILE: drivers/net/mlx5/mlx5.h:250: +#define MLX5_POOL_GET_CNT(pool, index) \ + ((struct mlx5_flow_counter *) \ + ((char *)((pool) + 1) + (index) * (MLX5_CNT_LEN(pool)))) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pool' - possible side-effects? #102: FILE: drivers/net/mlx5/mlx5.h:253: +#define MLX5_CNT_ARRAY_IDX(pool, cnt) \ + ((int)(((char *)(cnt) - (char *)((pool) + 1)) / MLX5_CNT_LEN((pool)))) \ /* total: 0 errors, 0 warnings, 2 checks, 208 lines checked