From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2CFBCA0C48 for ; Tue, 13 Jul 2021 10:46:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D869441299; Tue, 13 Jul 2021 10:46:03 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 7524E4128A for ; Tue, 13 Jul 2021 10:46:01 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 6F8AF120F1F; Tue, 13 Jul 2021 10:46:01 +0200 (CEST) In-Reply-To: <20210713084500.19964-4-suanmingm@nvidia.com> References: <20210713084500.19964-4-suanmingm@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Suanming Mou Message-Id: <20210713084601.6F8AF120F1F@dpdk.org> Date: Tue, 13 Jul 2021 10:46:01 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw95734 [PATCH v6 03/26] net/mlx5: add index pool foreach define X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 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/95734 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ipool' - possible side-effects? #261: FILE: drivers/net/mlx5/mlx5_utils.h:868: +#define MLX5_IPOOL_FOREACH(ipool, idx, entry) \ + for ((idx) = 0, mlx5_ipool_flush_cache((ipool)), \ + (entry) = mlx5_ipool_get_next((ipool), &idx); \ + (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx)) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'idx' - possible side-effects? #261: FILE: drivers/net/mlx5/mlx5_utils.h:868: +#define MLX5_IPOOL_FOREACH(ipool, idx, entry) \ + for ((idx) = 0, mlx5_ipool_flush_cache((ipool)), \ + (entry) = mlx5_ipool_get_next((ipool), &idx); \ + (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx)) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'entry' - possible side-effects? #261: FILE: drivers/net/mlx5/mlx5_utils.h:868: +#define MLX5_IPOOL_FOREACH(ipool, idx, entry) \ + for ((idx) = 0, mlx5_ipool_flush_cache((ipool)), \ + (entry) = mlx5_ipool_get_next((ipool), &idx); \ + (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx)) total: 0 errors, 0 warnings, 3 checks, 126 lines checked