[dpdk-dev] [PATCH v2] vfio: fix pci_vfio_map_resource
Thomas Monjalon
thomas.monjalon at 6wind.com
Fri Jul 15 18:56:24 CEST 2016
2016-07-15 18:42, Thomas Monjalon:
> 2016-07-15 17:32, Thomas Monjalon:
> > 2016-07-14 17:15, Yong Wang:
> > > - void *second_addr = RTE_PTR_ADD(bar_addr, memreg[1].offset);
> > > + void *second_addr = RTE_PTR_ADD(bar_addr,
> > > + memreg[1].offset - reg.offset);
> >
> > There is an error for 32-bit:
> > error: cast to pointer from integer of different size
> > note: in expansion of macro ‘RTE_PTR_ADD’
>
> It can fixed like this:
> - memreg[1].offset - reg.offset);
> + memreg[1].offset -
> + (uintptr_t)reg.offset);
>
Applied with above change, thanks
More information about the dev
mailing list