On Tue, May 10, 2016 at 02:01:04PM +0530, Jianbo Liu wrote: > Other APP may call rte_memcpy by function pointer,
Instead of "Other APP" may be better to use DPDK application > so change it to an inline function. > > Signed-off-by: Jianbo Liu <jianbo.liu at linaro.org> Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com> > --- > lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h > b/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h > index 917cdc1..3abe7cd 100644 > --- a/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h > +++ b/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h > @@ -78,7 +78,11 @@ rte_mov256(uint8_t *dst, const uint8_t *src) > memcpy(dst, src, 256); > } > > -#define rte_memcpy(d, s, n) memcpy((d), (s), (n)) > +static inline void * > +rte_memcpy(void *dst, const void *src, size_t n) > +{ > + return memcpy(dst, src, n); > +} > > static inline void * > rte_memcpy_func(void *dst, const void *src, size_t n) > -- > 2.4.11 >