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 <[email protected]> wrote on 2019/04/09 04:14:08 PM: > From: Thomas Monjalon <[email protected]> > To: [email protected] > Cc: [email protected] > 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 <[email protected]> > > --- > > 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? > >

