2015-11-26 09:35, Michael Qiu:
> examples/distributor/main.c(338): error #167:
> argument of type "struct rte_mbuf *"
> is incompatible with parameter of type "const char *"
>                       _mm_prefetch(bufs[0], 0);
> 
> The first param of _mm_prefetch should be "const char *" and
> need convert "struct rte_mbuf *" to "const void *".
[...]
> -                     _mm_prefetch(bufs[0], 0);
> -                     _mm_prefetch(bufs[1], 0);
> -                     _mm_prefetch(bufs[2], 0);
> +                     _mm_prefetch((const void *)bufs[0], 0);
> +                     _mm_prefetch((const void *)bufs[1], 0);
> +                     _mm_prefetch((const void *)bufs[2], 0);

With clang:
error: cast from 'const void *' to 'void *' drops const qualifier

Reply via email to