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 E3D5BA0096 for ; Thu, 11 Apr 2019 01:08:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B5424569B; Thu, 11 Apr 2019 01:08:25 +0200 (CEST) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 12C28569B for ; Thu, 11 Apr 2019 01:08:23 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id 85so2443854pgc.3 for ; Wed, 10 Apr 2019 16:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qsl2X3zxgfntbmZz8oeUPKaCl1qURCbmz0V0b6TF6hA=; b=vcilKW3vFi1kZAT8C+vhANPDU8vE7Sj8ZJgw2mBO48zpeONGuL+L49/Jw5/ge1VsrZ d/b2SmjutNe2OhfVoUISj7TtkfVIIbwzl/VECLDDF0e/cv3DZ/d46HQC6UcuACNlNhLk 2scKIyDi6TKMN3BOJnMPtXc8zlndDqVs5esLmvfTA/+9Qgai/gdycEx1vM7I1cL0blMz tihLqSsWRfv3l45sNWZbuob9JqMZmuqEVB5DG1iolqR5PvtAKf+HFvRqvGSO9riVFQaR MOed+NcXDy1XgL8TH6yIqk1SzF9QpQkJvG4KoH29oH9gPPUYSdu/y/fHFn7+rhFH5nbX ak6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qsl2X3zxgfntbmZz8oeUPKaCl1qURCbmz0V0b6TF6hA=; b=J42Pxse2ZWOZy2XX4OSJ0N1EvJsrkLXuhpdtVfrm0A5YTWWgoOE+SekkT4cbLI7xXx AJCVwIUTO+HWzR4sSD0azOgu0F1upVXNx/fiKDYmli4M2aVmg7v3FWzGCMi+IrF8h2jz e7lG0taAFY6LD8itjw3t7vPl4TzhJ9w6nIOpnt8iDtL67SEjTAlXyJJ6rpNUl1iur4Ts CRkRT0tFy20/lNW+fZO7QRFZjlfZlH1AOVrqw4ds+HV1l1JVRNJ05FNim7/gxAVPWJrW GqnWLmdTySBDyjFKrIT/OqIaHMjTd08F4ZCaT9QF/2crW/h5nCb2v4QiRPCRcGDrm8rO 5JCw== X-Gm-Message-State: APjAAAWwovJlHL3Rjo6dW/Qi+UvlPvqjBHfQF1K1JZdmdn68pXxrgACS hDQeAsZqUMsxp8i4txx+l3dP2Q== X-Google-Smtp-Source: APXvYqxaP3lhoYVCO3Za4WVZ6KH0a9HWljDKs/1dVDdQnoTUzPqXwcATIaOoiqNjl3+eKvQFJoDp9w== X-Received: by 2002:aa7:864a:: with SMTP id a10mr46436200pfo.181.1554937702461; Wed, 10 Apr 2019 16:08:22 -0700 (PDT) Received: from shemminger-XPS-13-9360 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id p66sm49295356pfb.4.2019.04.10.16.08.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 16:08:22 -0700 (PDT) Date: Wed, 10 Apr 2019 16:08:17 -0700 From: Stephen Hemminger To: Bruce Richardson Cc: David Christensen , thomas@monjalon.net, ferruh.yigit@intel.com, arybchenko@solarflare.com, dev@dpdk.org, radhika.chirra@ibm.com, stable@dpdk.org Message-ID: <20190410160818.78855564@shemminger-XPS-13-9360> In-Reply-To: <20190410210017.GA742@bricha3-MOBL.ger.corp.intel.com> References: <1554927376-93022-1-git-send-email-drc@linux.vnet.ibm.com> <20190410210017.GA742@bricha3-MOBL.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] ethdev: missing typecast from void in eth_dev_pci_specific_init X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Wed, 10 Apr 2019 22:00:18 +0100 Bruce Richardson wrote: > On Wed, Apr 10, 2019 at 03:16:16PM -0500, David Christensen wrote: > > The function eth_dev_pci_specific_init is missing a typecast to > > (struct rte_pci_device *) for the input argument bus_device. > > > > Cc: stable@dpdk.org > > > > Signed-off-by: David Christensen > > Tested-by: Radhika Chirra > > --- > > 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 23257e9..a325311 100644 > > --- a/lib/librte_ethdev/rte_ethdev_pci.h > > +++ b/lib/librte_ethdev/rte_ethdev_pci.h > > @@ -72,7 +72,7 @@ > > > > 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; > > > > Is this needed for building some C++ apps that are including the header > file (directly, or indirectly), because for pure C, "void *" types should > be assignable to any other pointer type without casting? > > /Bruce Another example of Why the Hell is this inline?