[dpdk-dev] [PATCH] net/virtio: fix build error with clang

2016-09-23 Thread Yuanhan Liu
On Tue, Aug 23, 2016 at 03:40:58PM +0800, Yuanhan Liu wrote: > Interestingly, clang and gcc has different prototype for _mm_prefetch(). > For gcc, we have > >_mm_prefetch (const void *__P, enum _mm_hint __I) > > While for clang, it's > >#define _mm_prefetch(a, sel) (__builtin_prefetch((v

[dpdk-dev] [PATCH] net/virtio: fix build error with clang

2016-08-23 Thread Yuanhan Liu
Interestingly, clang and gcc has different prototype for _mm_prefetch(). For gcc, we have _mm_prefetch (const void *__P, enum _mm_hint __I) While for clang, it's #define _mm_prefetch(a, sel) (__builtin_prefetch((void *)(a), 0, (sel))) That how the following error comes with clang: err