Skip to contentSkip to conversation

net: ena: fix compilation error in xtensa architecture

PATCH Applied [email protected] 2 participants 2 messages Oct 21, 2018 – Oct 23, 2018

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 net: ena: fix compilation error in xtensa architecture

From: Arthur Kiyanovski <[email protected]>

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")
---
 drivers/net/ethernet/amazon/ena/ena_com.h | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/amazon/ena/ena_com.h +1 -0
index ae8b485..078d6f2 100644
@@ -38,6 +38,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/gfp.h>
 #include <linux/io.h>
+#include <linux/prefetch.h>
 #include <linux/sched.h>
 #include <linux/sizes.h>
 #include <linux/spinlock.h>
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw

From: <[email protected]>
Date: Sun, 21 Oct 2018 18:07:14 +0300

Quoted 11 lines

From: Arthur Kiyanovski <[email protected]>

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")

Applied.