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 10958A329E for ; Wed, 23 Oct 2019 20:55:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 38B0F1D178; Wed, 23 Oct 2019 20:55:02 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id D37411D169 for ; Wed, 23 Oct 2019 20:54:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571856897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EHBgfjAEsRlF+kygwZFYBRi3036zytg1glqn90EWAss=; b=Op+EmV3RPzp1e2X7f376Uz284sosouNrKg7BL2ylAgn7XJpVai/w6RX0w6ck6R7GFsMlky uOMYchnd0VwXQddghrxNp5u2m3HIbTxYGkjCoSuGtb1dqtCO4euE2sBrehK3pZGerzHBe0 +pK0cKcuKRIwjIx1pSPduBaRt892ioE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-171-5SzPjHLcNuOJRr70I8b4Pg-1; Wed, 23 Oct 2019 14:54:54 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F341A5EC; Wed, 23 Oct 2019 18:54:52 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-129.brq.redhat.com [10.40.204.129]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9740B60872; Wed, 23 Oct 2019 18:54:50 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stephen@networkplumber.org, anatoly.burakov@intel.com, thomas@monjalon.net, stable@dpdk.org, Chas Williams Date: Wed, 23 Oct 2019 20:54:17 +0200 Message-Id: <1571856864-8779-6-git-send-email-david.marchand@redhat.com> In-Reply-To: <1571856864-8779-1-git-send-email-david.marchand@redhat.com> References: <1571736761-32134-1-git-send-email-david.marchand@redhat.com> <1571856864-8779-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: 5SzPjHLcNuOJRr70I8b4Pg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH v2 05/12] net/bonding: use non deprecated PCI API 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" rte_eal_compare_pci_addr has been deprecated since v17.11. Convert to rte_pci_addr_cmp. Fixes: c848b518bbc7 ("net/bonding: support bifurcated driver in eal") Cc: stable@dpdk.org Signed-off-by: David Marchand --- drivers/net/bonding/rte_eth_bond_args.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_args.c b/drivers/net/bonding/= rte_eth_bond_args.c index f298ea0..bfe03c3 100644 --- a/drivers/net/bonding/rte_eth_bond_args.c +++ b/drivers/net/bonding/rte_eth_bond_args.c @@ -60,11 +60,10 @@ find_port_id_by_dev_name(const char *name) static inline int bond_pci_addr_cmp(const struct rte_device *dev, const void *_pci_addr) { -=09struct rte_pci_device *pdev; +=09const struct rte_pci_device *pdev =3D RTE_DEV_TO_PCI_CONST(dev); =09const struct rte_pci_addr *paddr =3D _pci_addr; =20 -=09pdev =3D RTE_DEV_TO_PCI(*(struct rte_device **)(void *)&dev); -=09return rte_eal_compare_pci_addr(&pdev->addr, paddr); +=09return rte_pci_addr_cmp(&pdev->addr, paddr); } =20 /** --=20 1.8.3.1