[dpdk-dev] [RFC 10/12] ethdev: add cast for bus_device
Vivian Kong
vivkong at ca.ibm.com
Wed Apr 10 19:10:45 CEST 2019
Hmm...we weren't able to compile without the cast. I'll take a closer
look. Thanks.
Regards,
Vivian Kong
Linux on IBM Z Open Source Ecosystem
IBM Canada Toronto Lab
Thomas Monjalon <thomas at monjalon.net> wrote on 2019/04/09 04:14:08 PM:
> From: Thomas Monjalon <thomas at monjalon.net>
> To: vivkong at ca.ibm.com
> Cc: dev at dpdk.org
> Date: 2019/04/09 04:14 PM
> Subject: Re: [dpdk-dev] [RFC 10/12] ethdev: add cast for bus_device
>
> 09/04/2019 21:06, Vivian Kong:
> > Signed-off-by: Vivian Kong <vivkong at ca.ibm.com>
> > ---
> > 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;
>
> Why do we need such cast?
>
>
More information about the dev
mailing list