[dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to integer of different size

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Mar 9 12:43:38 CET 2015


> > ./i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error:
> > cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > 
> >   dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16;
> > 
> > Type 'long long' is 64-bit in i686 platform while 'void *'
> > is 32-bit.
> > 
> > Signed-off-by: Michael Qiu <michael.qiu at intel.com>
> > Signed-off-by: Zhihong Wang <zhihong.wang at intel.com>
> > ---
> > v4 --> v3:
> > 	fix dstofss/bits to size_t in rte_memcpy()
> > v3 --> v2:
> >         make dstofss and srcofs to be type size_t
> >         casting type use uintptr_t
> > 
> > v2 --> v1:
> >         Remove unnecessary casting (void *)
> 
> Acked-by:  Wang, Zhihong <zhihong.wang at intel.com>

Applied, thanks


More information about the dev mailing list