[dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx

Xie, Huawei huawei.xie at intel.com
Mon Nov 2 03:18:37 CET 2015


On 10/31/2015 2:21 AM, Thomas Monjalon wrote:
> Sorry, there is a clang error.
>
> 2015-10-29 22:53, Huawei Xie:
>> +	_mm_prefetch((const void *)rused, _MM_HINT_T0);
> virtio_rxtx_simple.c:197:2: error: cast from 'const void *' to
>       'void *' drops const qualifier
This is weird. This conversion is actually from 'void *' to 'const void
*', not the opposite, so there should be no error.
I checked clang build, it doesn't report error.
    clang version 3.3 (tags/RELEASE_33/rc2)



More information about the dev mailing list