From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: [PATCH V1 net-next] net: ena: fix compilation error in xtensa architecture Date: Sun, 21 Oct 2018 18:07:14 +0300 Message-ID: <1540134434-6774-1-git-send-email-akiyano@amazon.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Arthur Kiyanovski , , , , , , , , , , To: , Return-path: Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:61144 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbeJUXWm (ORCPT ); Sun, 21 Oct 2018 19:22:42 -0400 Sender: netdev-owner@vger.kernel.org List-ID: From: Arthur Kiyanovski 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 --- 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 ae8b485..078d6f2 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.7.4