From e4d8407a0a4bc47b12fc5b0d5672164ef7a1ee73 Mon Sep 17 00:00:00 2001 From: Arthur Kiyanovski Date: Sun, 21 Oct 2018 18:07:14 +0300 Subject: [PATCH] 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: 62336430c9d1 ("net: ena: add functions for handling Low Latency Queues in ena_com") Fixes: 9142839543c8 ("ena: Fix Kconfig dependency on X86") Signed-off-by: Arthur Kiyanovski Signed-off-by: David S. Miller --- drivers/net/ethernet/amazon/ena/ena_com.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/amazon/ena/ena_com.h b/drivers/net/ethernet/amazon/ena/ena_com.h index ae8b4857fce37..078d6f2b4f398 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 -- 2.39.5