From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 04C07A2EEB for ; Mon, 7 Oct 2019 15:56:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E9EB21C1D0; Mon, 7 Oct 2019 15:56:45 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 8E37E1C25A; Mon, 7 Oct 2019 15:56:42 +0200 (CEST) In-Reply-To: <1570456579-5075-1-git-send-email-viacheslavo@mellanox.com> References: <1570456579-5075-1-git-send-email-viacheslavo@mellanox.com> To: test-report@dpdk.org Cc: Viacheslav Ovsiienko Message-Id: <20191007135642.8E37E1C25A@dpdk.org> Date: Mon, 7 Oct 2019 15:56:42 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw60616 [PATCH] net/mlx5: fix device scan within switch domain X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 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/60616 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'port_id' - possible side-effects? #119: FILE: drivers/net/mlx5/mlx5.h:688: +#define MLX5_ETH_FOREACH_DEV(port_id, pci_dev) \ + for (port_id = mlx5_eth_find_next(0, pci_dev); \ port_id < RTE_MAX_ETHPORTS; \ + port_id = mlx5_eth_find_next(port_id + 1, pci_dev)) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pci_dev' - possible side-effects? #119: FILE: drivers/net/mlx5/mlx5.h:688: +#define MLX5_ETH_FOREACH_DEV(port_id, pci_dev) \ + for (port_id = mlx5_eth_find_next(0, pci_dev); \ port_id < RTE_MAX_ETHPORTS; \ + port_id = mlx5_eth_find_next(port_id + 1, pci_dev)) total: 0 errors, 0 warnings, 2 checks, 94 lines checked