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 2C724A0A0C for ; Fri, 2 Jul 2021 08:19:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0573841334; Fri, 2 Jul 2021 08:19:34 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 75E8A41352 for ; Fri, 2 Jul 2021 08:19:32 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 7185D122E89; Fri, 2 Jul 2021 08:19:32 +0200 (CEST) In-Reply-To: <20210702061816.10454-4-suanmingm@nvidia.com> References: <20210702061816.10454-4-suanmingm@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Suanming Mou Message-Id: <20210702061932.7185D122E89@dpdk.org> Date: Fri, 2 Jul 2021 08:19:32 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw95156 [PATCH v3 03/22] 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/95156 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ipool' - possible side-effects? #244: 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? #244: 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? #244: 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, 110 lines checked