diff mbox series

[net-next,3/6,v2] ixp4xx_eth: enable compile testing

Message ID 20210813220011.921211-4-linus.walleij@linaro.org
State New
Headers show
Series IXP46x PTP Timer clean-up and DT | expand

Commit Message

Linus Walleij Aug. 13, 2021, 10 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de>


The driver is now independent of machine specific header
files and should build on all architectures, so enable
building with CONFIG_COMPILE_TEST.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/net/ethernet/xscale/Kconfig | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
2.31.1

Comments

Jakub Kicinski Aug. 13, 2021, 10:55 p.m. UTC | #1
On Sat, 14 Aug 2021 00:00:08 +0200 Linus Walleij wrote:
> From: Arnd Bergmann <arnd@arndb.de>

> 

> The driver is now independent of machine specific header

> files and should build on all architectures, so enable

> building with CONFIG_COMPILE_TEST.

> 

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>


does not build on x86 allmodconfig?

drivers/net/ethernet/xscale/ptp_ixp46x.c:20:10: fatal error: mach/ixp4xx-regs.h: No such file or directory
   20 | #include <mach/ixp4xx-regs.h>
      |          ^~~~~~~~~~~~~~~~~~~~
diff mbox series

Patch

diff --git a/drivers/net/ethernet/xscale/Kconfig b/drivers/net/ethernet/xscale/Kconfig
index 0e878fa6e322..b93e88422a13 100644
--- a/drivers/net/ethernet/xscale/Kconfig
+++ b/drivers/net/ethernet/xscale/Kconfig
@@ -6,8 +6,8 @@ 
 config NET_VENDOR_XSCALE
 	bool "Intel XScale IXP devices"
 	default y
-	depends on NET_VENDOR_INTEL && (ARM && ARCH_IXP4XX && \
-		   IXP4XX_NPE && IXP4XX_QMGR)
+	depends on NET_VENDOR_INTEL && IXP4XX_NPE && IXP4XX_QMGR
+	depends on ARCH_IXP4XX || COMPILE_TEST
 	help
 	  If you have a network (Ethernet) card belonging to this class, say Y.
 
@@ -20,7 +20,8 @@  if NET_VENDOR_XSCALE
 
 config IXP4XX_ETH
 	tristate "Intel IXP4xx Ethernet support"
-	depends on ARM && ARCH_IXP4XX && IXP4XX_NPE && IXP4XX_QMGR
+	depends on IXP4XX_NPE && IXP4XX_QMGR
+	depends on ARCH_IXP4XX || COMPILE_TEST
 	select PHYLIB
 	select OF_MDIO if OF
 	select NET_PTP_CLASSIFY