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 8D381A00C2 for ; Fri, 24 Apr 2020 12:46:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 812BD1C206; Fri, 24 Apr 2020 12:46:37 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 567B41C1D0; Fri, 24 Apr 2020 12:46:36 +0200 (CEST) In-Reply-To: <20200424104548.12655-2-dongz@mellanox.com> References: <20200424104548.12655-2-dongz@mellanox.com> To: test-report@dpdk.org Cc: Bill Zhou Message-Id: <20200424104636.567B41C1D0@dpdk.org> Date: Fri, 24 Apr 2020 12:46:36 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw69246 [PATCH v2 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/69246 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pool' - possible side-effects? #100: FILE: drivers/net/mlx5/mlx5.h:232: +#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? #103: FILE: drivers/net/mlx5/mlx5.h:235: +#define MLX5_CNT_ARRAY_IDX(pool, cnt) \ + ((int)(((char *)(cnt) - (char *)((pool) + 1)) / MLX5_CNT_LEN(pool))) \ /* total: 0 errors, 0 warnings, 2 checks, 209 lines checked