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 09957A0C47 for ; Tue, 6 Jul 2021 15:34:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 476214146F; Tue, 6 Jul 2021 15:33:58 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 819FD41465 for ; Tue, 6 Jul 2021 15:33:55 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 776221233CB; Tue, 6 Jul 2021 15:33:55 +0200 (CEST) In-Reply-To: <20210706133257.3353-4-suanmingm@nvidia.com> References: <20210706133257.3353-4-suanmingm@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Suanming Mou Message-Id: <20210706133355.776221233CB@dpdk.org> Date: Tue, 6 Jul 2021 15:33:55 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw95390 [PATCH v4 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/95390 _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