2b95a9287f79c369027bab81666cf250b5a0069e
[openwrt/openwrt.git] / target / linux / gemini / patches-4.14 / 0024-net-gemini-Depend-on-HAS_IOMEM.patch
1 From e0a7c7762e3a81e908bcca4176139ea9755d0985 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Sun, 21 Jan 2018 14:15:41 +0100
4 Subject: [PATCH 24/31] net: gemini: Depend on HAS_IOMEM
5
6 The zeroday builder notices that since Usermode Linux does not
7 have IO memory, the build fails for them when selecting everything
8 it can enable.
9
10 As the driver is clearly using memory-mapped registers to access
11 the network adapter, we add depends on HAS_IOMEM to solve this
12 problem.
13
14 Reported-by: kbuild test robot <fengguang.wu@intel.com>
15 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
16 Signed-off-by: David S. Miller <davem@davemloft.net>
17 ---
18 drivers/net/ethernet/cortina/Kconfig | 1 +
19 1 file changed, 1 insertion(+)
20
21 --- a/drivers/net/ethernet/cortina/Kconfig
22 +++ b/drivers/net/ethernet/cortina/Kconfig
23 @@ -14,6 +14,7 @@ if NET_VENDOR_CORTINA
24 config GEMINI_ETHERNET
25 tristate "Gemini Gigabit Ethernet support"
26 depends on OF
27 + depends on HAS_IOMEM
28 select PHYLIB
29 select CRC32
30 ---help---