From: Arthur Kiyanovski Date: Sun, 21 Oct 2018 15:07:14 +0000 (+0300) Subject: net: ena: fix compilation error in xtensa architecture X-Git-Tag: archive/raspbian/5.2.17-1+rpi1^2^2^2^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c1f12391a8eeea7c103d30fbea191fd0eca6185d;p=linux.git net: ena: fix compilation error in xtensa architecture linux/prefetch.h is never explicitly included in ena_com, although functions from it, such as prefetchw(), are used throughout ena_com. This is an inclusion bug, and we fix it here by explicitly including linux/prefetch.h. The bug was exposed when the driver was compiled for the xtensa architecture. Fixes: 689b2bdaaa14 ("net: ena: add functions for handling Low Latency Queues in ena_com") Fixes: 8c590f977638 ("ena: Fix Kconfig dependency on X86") Signed-off-by: Arthur Kiyanovski Signed-off-by: David S. Miller Gbp-Pq: Topic features/all/ena Gbp-Pq: Name 0016-net-ena-fix-compilation-error-in-xtensa-architecture.patch --- diff --git a/drivers/net/ethernet/amazon/ena/ena_com.h b/drivers/net/ethernet/amazon/ena/ena_com.h index ae8b4857fce..078d6f2b4f3 100644 --- a/drivers/net/ethernet/amazon/ena/ena_com.h +++ b/drivers/net/ethernet/amazon/ena/ena_com.h @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include