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 2E056A0C4B for ; Mon, 12 Jul 2021 03:48:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2096441180; Mon, 12 Jul 2021 03:48:39 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 93EA24116F for ; Mon, 12 Jul 2021 03:48:37 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 8F9E5120F1F; Mon, 12 Jul 2021 03:48:37 +0200 (CEST) In-Reply-To: <20210712014654.32428-4-suanmingm@nvidia.com> References: <20210712014654.32428-4-suanmingm@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Suanming Mou Message-Id: <20210712014837.8F9E5120F1F@dpdk.org> Date: Mon, 12 Jul 2021 03:48:37 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw95660 [PATCH v5 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/95660 _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