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 65FDFA0548 for ; Thu, 27 May 2021 11:35:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62A9A410F5; Thu, 27 May 2021 11:35:04 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id DEB1740683 for ; Thu, 27 May 2021 11:35:02 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id D2F1C122E1E; Thu, 27 May 2021 11:35:02 +0200 (CEST) In-Reply-To: <20210527093403.1153127-4-suanmingm@nvidia.com> References: <20210527093403.1153127-4-suanmingm@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Suanming Mou Message-Id: <20210527093502.D2F1C122E1E@dpdk.org> Date: Thu, 27 May 2021 11:35:02 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw93477 [PATCH 3/4] net/mlx5: add index pool cache flush 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/93477 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ipool' - possible side-effects? #241: FILE: drivers/net/mlx5/mlx5_utils.h:872: +#define MLX5_IPOOL_FOREACH(ipool, idx, entry) \ + for ((idx) = 1, 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? #241: FILE: drivers/net/mlx5/mlx5_utils.h:872: +#define MLX5_IPOOL_FOREACH(ipool, idx, entry) \ + for ((idx) = 1, 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? #241: FILE: drivers/net/mlx5/mlx5_utils.h:872: +#define MLX5_IPOOL_FOREACH(ipool, idx, entry) \ + for ((idx) = 1, 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, 111 lines checked