From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 7B3912A62 for ; Mon, 19 Mar 2018 11:43:29 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id x82so1803139wmg.1 for ; Mon, 19 Mar 2018 03:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VfA0PyiVeIygLc8hjKRIbwytpy+DhYPYzrc1NR9PfQk=; b=zKziNUrtPcV7Gz1FDmqoTj84QEZO1IkCl4C7jSJKBHyvNgs87yzozeTLY52Gkanw9w FmMepkkDduduAv4GA6aK0CxmRswb9c8jC7gfKR9VfYl5eK99rAaz4XcDbOomE7AFIfDa CsJR3gf3jyRYiiDUvLQvhbW60IM1xz6E6SKJNy4OpzyebjIL525F3oXn7JItRpq4aM8B SxJywyhHqZfVi8K1nTVoPrwhhIZJYKry/kQ20IsRj7TANlQ/LK99//1lrno6f7o8Vxu4 KKVoj4ApcQlWwWOmEBkW5W+fISd+dJv/P57VMeepsm/kvQBZk59oPOfAlrZPfv4kAEJh hesw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VfA0PyiVeIygLc8hjKRIbwytpy+DhYPYzrc1NR9PfQk=; b=m3HMnUoGE6QNiHtMnAfve/yGHUpXyP9GEjWZmfNABUyjv8BpLFysrziIO0fhdz1tQc /MK7JIBC3wbgYDBK/ZobJn8/7UZHg802VVTszlpLomT+i6VbZ1shKzhSA7pNKKC2oS3d KcWSOQ+rOeL4eCbUGZj2kNfdzyoACBYPnrnPtoSDXOfGvu/LCz2C/pdR62N2vGnRGt4d sUEQRpg2CO0wf2ipVeJnfNnZrt0d/yUcj6kSpn2C0boqXDU3gmVfWAcJHmM2OtuEQJOa j9xriIZ5GWgi9DZP1M4C4+kOVn0ZuEn9pKmqMfZ9FUvqOniVmg9+4aVO2AUMeb0ZvN51 MfxA== X-Gm-Message-State: AElRT7EpJbURj5UV+CQHTHE3DSNJBqMmK1PTGijyH1owafUWi6XwZ474 ixCxMbGnyoQ5J6jcYnWKnsu/ X-Google-Smtp-Source: AG47ELu6YonTJQ/nXIlA4P62QX8X+bWaoHcdTE7Dc6IRdztyCXYeuFTcbrKteW6wWiUA9ORf30HaFQ== X-Received: by 10.28.230.79 with SMTP id d76mr8065578wmh.161.1521456209158; Mon, 19 Mar 2018 03:43:29 -0700 (PDT) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 55sm19174655wrw.87.2018.03.19.03.43.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 03:43:28 -0700 (PDT) From: Nelio Laranjeiro To: Adrien Mazarguil , Yongseok Koh , Ferruh Yigit Cc: dev@dpdk.org, orika@mellanox.com Date: Mon, 19 Mar 2018 11:42:16 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Subject: [dpdk-dev] [PATCH] net/mlx5: fix ICC compilation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2018 10:43:29 -0000 Remove the second declaration of device_attr [1] inside the loop as well as the query_device_ex() which has already been done outside of the loop. Fixes: 9a761de8ea14 ("net/mlx5: flow counter support") Cc: orika@mellanox.com Reported-by: Ferruh Yigit Signed-off-by: Nelio Laranjeiro [1] https://dpdk.org/ml/archives/dev/2018-March/091744.html --- drivers/net/mlx5/mlx5.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index a2acac703..b8b362a20 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -723,7 +723,6 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, struct rte_eth_dev *eth_dev = NULL; struct ibv_device_attr_ex device_attr_ex; struct ether_addr mac; - struct ibv_device_attr_ex device_attr; struct mlx5_dev_config config = { .cqe_comp = cqe_comp, .mps = mps, @@ -780,7 +779,6 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, err = ENODEV; goto port_error; } - mlx5_glue->query_device_ex(ctx, NULL, &device_attr); /* Check port status. */ err = mlx5_glue->query_port(ctx, port, &port_attr); if (err) { -- 2.11.0