[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5aecbd3f-a489-0738-8249-5e08a6f2766f@infradead.org>
Date: Sat, 26 Sep 2020 21:33:43 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>
Cc: Bartosz Golaszewski <bgolaszewski@...libre.com>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
David Daney <david.daney@...ium.com>
Subject: [PATCH] mdio: fix mdio-thunder.c dependency & build error
From: Randy Dunlap <rdunlap@...radead.org>
Fix build error by selecting MDIO_DEVRES for MDIO_THUNDER.
Fixes this build error:
ld: drivers/net/phy/mdio-thunder.o: in function `thunder_mdiobus_pci_probe':
drivers/net/phy/mdio-thunder.c:78: undefined reference to `devm_mdiobus_alloc_size'
Fixes: 379d7ac7ca31 ("phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses.")
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Bartosz Golaszewski <bgolaszewski@...libre.com>
Cc: Andrew Lunn <andrew@...n.ch>
Cc: Heiner Kallweit <hkallweit1@...il.com>
Cc: netdev@...r.kernel.org
Cc: David Daney <david.daney@...ium.com>
---
or applies to drivers/net/phy/Kconfig in mainline (or stable) # v4.6
drivers/net/mdio/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- linux-next-20200925.orig/drivers/net/mdio/Kconfig
+++ linux-next-20200925/drivers/net/mdio/Kconfig
@@ -164,6 +164,7 @@ config MDIO_THUNDER
depends on 64BIT
depends on PCI
select MDIO_CAVIUM
+ select MDIO_DEVRES
help
This driver supports the MDIO interfaces found on Cavium
ThunderX SoCs when the MDIO bus device appears as a PCI
Powered by blists - more mailing lists