diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 972bddb5b3..4e74f8fa81 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -335,13 +335,13 @@ lcore_tx(struct rte_ring *in_r) /* for traffic we receive, queue it up for transmit */ uint16_t i; - _mm_prefetch(bufs[0], 0); - _mm_prefetch(bufs[1], 0); - _mm_prefetch(bufs[2], 0); + _mm_prefetch((void *)bufs[0], 0); + _mm_prefetch((void *)bufs[1], 0); + _mm_prefetch((void *)bufs[2], 0); for (i = 0; i < nb_rx; i++) { struct output_buffer *outbuf; uint8_t outp; - _mm_prefetch(bufs[i + 3], 0); + _mm_prefetch((void *)bufs[i + 3], 0); /* * workers should update in_port to hold the * output port value