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 45E29A0548 for ; Thu, 27 May 2021 15:40:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 42978410F0; Thu, 27 May 2021 15:40:47 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 7F94E40683 for ; Thu, 27 May 2021 15:40:45 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 785A5122E1E; Thu, 27 May 2021 15:40:45 +0200 (CEST) In-Reply-To: <20210527133759.17401-4-xuemingl@nvidia.com> References: <20210527133759.17401-4-xuemingl@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Xueming Li Message-Id: <20210527134045.785A5122E1E@dpdk.org> Date: Thu, 27 May 2021 15:40:45 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw93485 [RFC 03/14] net/mlx5: remove PCI dependency 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/93485 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'port_id' - possible side-effects? #319: FILE: drivers/net/mlx5/mlx5.h:1413: +#define MLX5_ETH_FOREACH_DEV(port_id, dev) \ + for (port_id = mlx5_eth_find_next(0, dev); \ port_id < RTE_MAX_ETHPORTS; \ + port_id = mlx5_eth_find_next(port_id + 1, dev)) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'dev' - possible side-effects? #319: FILE: drivers/net/mlx5/mlx5.h:1413: +#define MLX5_ETH_FOREACH_DEV(port_id, dev) \ + for (port_id = mlx5_eth_find_next(0, dev); \ port_id < RTE_MAX_ETHPORTS; \ + port_id = mlx5_eth_find_next(port_id + 1, dev)) total: 0 errors, 0 warnings, 2 checks, 297 lines checked