From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 42728A0096 for ; Tue, 9 Apr 2019 21:08:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EB4705F2A; Tue, 9 Apr 2019 21:07:08 +0200 (CEST) Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by dpdk.org (Postfix) with ESMTP id 10EB45592 for ; Tue, 9 Apr 2019 21:06:47 +0200 (CEST) Received: by mail-qt1-f170.google.com with SMTP id t28so21156414qte.6 for ; Tue, 09 Apr 2019 12:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:reply-to; bh=reycIkNaHrXDVIazgLj/BB5Ki56XKYnREYyUIIhfv5M=; b=FknVffJ9POBcC+eDMhMov1aLsoaF17DZTIJga6f0GIDHz5lqgqv7o7t235RBsVx0qP cDK2M9Fo0Yz5JG/jp0bPy5+daRxq8BENKmo0It9V93WV8JKeEM9GtKqhrpq5aGYevpcv OEeFVWohU+hGKb7kf9T18hNI9qYZiE2RHn4yQA9t0uWKE+XDSTJhmNgDFkGZmvDERNM+ MA06BAQRhIzBNd0LVcdq6/OT3AlA4h3BHcdjkh+EojQkwz99FY8pQ4lUcvLtZy4LMzNJ aD3bXdWbmBiwL/9uqs5ma+OfHes5efSMHYSKuC/wN+d9R4/VUBmEXIJYyg1e0CviilsD 7O4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:reply-to; bh=reycIkNaHrXDVIazgLj/BB5Ki56XKYnREYyUIIhfv5M=; b=GUpZ/ZscW/TgO/VdTwWbzmy7bH2HoPg8FHF94KaaRM41RszZlEg2kc02sZB6veXsBL IPPLovipRq4wx1iZ6cx0ezOw0Yih2hr/RYaMNCKBH3CGIEk3bm8RZtx/IpHQ3Io2sAhq 3wP61jTG0UL5ci+CYGpXvNb/4twYMWNZpGF8U2ZASgiKRIO3rTJVlu9BQI7kgEWo9djF fr+UtzPzhY21esfXCjcjQl0+MNdzo8LT8F2ssrwSiAHeShlB8ya/9TaghW004k3QQefH kOleB/wZmrHwY3ITqM2SqYJJLEQ8AtLZhagK7zL3yA5HbioR5sVVhWMiqO+LqEP2uMzN L19A== X-Gm-Message-State: APjAAAW9+DQQu66Dvg9zus5+eI5zBEQkkVXM6k0cP4FaG7JOPfSAyKUH v1DWka5G8MDmZ3Yfj6bOzGcjfMQZdnU= X-Google-Smtp-Source: APXvYqwetpURBxBwJ0Zg4FrzhtfpCsGn3CGvMX7nL60FycAvlQMSwWsj6XdANpf7AKTda/Q2jlDrng== X-Received: by 2002:ac8:2d56:: with SMTP id o22mr30337491qta.321.1554836806039; Tue, 09 Apr 2019 12:06:46 -0700 (PDT) Received: from csz25116.canlab.ibm.com ([199.246.40.57]) by smtp.gmail.com with ESMTPSA id q23sm17934789qkc.16.2019.04.09.12.06.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 12:06:45 -0700 (PDT) From: Vivian Kong X-Google-Original-From: Vivian Kong To: dev@dpdk.org Date: Tue, 9 Apr 2019 15:06:28 -0400 Message-Id: <20190409190630.31975-11-vivkong@ca.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190409190630.31975-1-vivkong@ca.ibm.com> References: <20190409190630.31975-1-vivkong@ca.ibm.com> Subject: [dpdk-dev] [RFC 10/12] ethdev: add cast for bus_device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: vivkong@ca.ibm.com List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190409190628.XExTlTYySfL6TmIoB8YEBkDsTKTCBQfuZBXyyxKyVOI@z> Signed-off-by: Vivian Kong --- lib/librte_ethdev/rte_ethdev_pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_ethdev_pci.h b/lib/librte_ethdev/rte_ethdev_pci.h index 23257e986..80bd120b9 100644 --- a/lib/librte_ethdev/rte_ethdev_pci.h +++ b/lib/librte_ethdev/rte_ethdev_pci.h @@ -72,7 +72,7 @@ rte_eth_copy_pci_info(struct rte_eth_dev *eth_dev, static inline int eth_dev_pci_specific_init(struct rte_eth_dev *eth_dev, void *bus_device) { - struct rte_pci_device *pci_dev = bus_device; + struct rte_pci_device *pci_dev = (struct rte_pci_device *) bus_device; if (!pci_dev) return -ENODEV; -- 2.17.1