[PATCH] net: gemini: Depend on HAS_IOMEM

Subsystems: arm/cortina systems gemini arm architecture, networking drivers, the rest

STALE3152d

2 messages, 2 authors, 2018-01-21 · open the first message on its own page

[PATCH] net: gemini: Depend on HAS_IOMEM

From: Linus Walleij <hidden>
Date: 2018-01-21 13:15:41

The zeroday builder notices that since Usermode Linux does not
have IO memory, the build fails for them when selecting everything
it can enable.

As the driver is clearly using memory-mapped registers to access
the network adapter, we add depends on HAS_IOMEM to solve this
problem.

Reported-by: kbuild test robot <redacted>
Signed-off-by: Linus Walleij <redacted>
---
 drivers/net/ethernet/cortina/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/cortina/Kconfig b/drivers/net/ethernet/cortina/Kconfig
index 0df743ea51f1..89bc4579724d 100644
--- a/drivers/net/ethernet/cortina/Kconfig
+++ b/drivers/net/ethernet/cortina/Kconfig
@@ -14,6 +14,7 @@ if NET_VENDOR_CORTINA
 config GEMINI_ETHERNET
 	tristate "Gemini Gigabit Ethernet support"
 	depends on OF
+	depends on HAS_IOMEM
 	select PHYLIB
 	select CRC32
 	---help---
-- 
2.14.3

[PATCH] net: gemini: Depend on HAS_IOMEM

From: davem@davemloft.net (David Miller)
Date: 2018-01-21 23:06:01

From: Linus Walleij <redacted>
Date: Sun, 21 Jan 2018 14:15:41 +0100
The zeroday builder notices that since Usermode Linux does not
have IO memory, the build fails for them when selecting everything
it can enable.

As the driver is clearly using memory-mapped registers to access
the network adapter, we add depends on HAS_IOMEM to solve this
problem.

Reported-by: kbuild test robot <redacted>
Signed-off-by: Linus Walleij <redacted>
Applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help