From: Jeff Kirsher <jeffrey.t.kirs...@intel.com> Date: Sat, 12 Aug 2017 04:08:33 -0700
> @@ -1830,7 +1830,7 @@ static struct sk_buff *i40e_construct_skb(struct > i40e_ring *rx_ring, > /* prefetch first cache line of first page */ > prefetch(xdp->data); > #if L1_CACHE_BYTES < 128 > - prefetch(xdp->data + L1_CACHE_BYTES); > + prefetch((void *)(xdp->data + L1_CACHE_BYTES)); > #endif This cast seems unnecessary: [davem@localhost net]$ cat x.c extern void foo(const void *x); void bar(void *x) { foo(x); } [davem@localhost net]$ gcc -Wall -O2 -c -o x.o x.c [davem@localhost net]$