netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 6.7 260/334] net: ethernet: adi: requires PHYLIB support
       [not found] <20240227131630.636392135@linuxfoundation.org>
@ 2024-02-27 13:21 ` Greg Kroah-Hartman
  2024-02-28  8:06   ` Jiri Slaby
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2024-02-27 13:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Randy Dunlap, kernel test robot,
	Lennart Franzen, Alexandru Tachici, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev, Nuno Sa, Sasha Levin

6.7-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Randy Dunlap <rdunlap@infradead.org>

[ Upstream commit a9f80df4f51440303d063b55bb98720857693821 ]

This driver uses functions that are supplied by the Kconfig symbol
PHYLIB, so select it to ensure that they are built as needed.

When CONFIG_ADIN1110=y and CONFIG_PHYLIB=m, there are multiple build
(linker) errors that are resolved by this Kconfig change:

   ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_net_open':
   drivers/net/ethernet/adi/adin1110.c:933: undefined reference to `phy_start'
   ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_probe_netdevs':
   drivers/net/ethernet/adi/adin1110.c:1603: undefined reference to `get_phy_device'
   ld: drivers/net/ethernet/adi/adin1110.c:1609: undefined reference to `phy_connect'
   ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_disconnect_phy':
   drivers/net/ethernet/adi/adin1110.c:1226: undefined reference to `phy_disconnect'
   ld: drivers/net/ethernet/adi/adin1110.o: in function `devm_mdiobus_alloc':
   include/linux/phy.h:455: undefined reference to `devm_mdiobus_alloc_size'
   ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_register_mdiobus':
   drivers/net/ethernet/adi/adin1110.c:529: undefined reference to `__devm_mdiobus_register'
   ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_net_stop':
   drivers/net/ethernet/adi/adin1110.c:958: undefined reference to `phy_stop'
   ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_disconnect_phy':
   drivers/net/ethernet/adi/adin1110.c:1226: undefined reference to `phy_disconnect'
   ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_adjust_link':
   drivers/net/ethernet/adi/adin1110.c:1077: undefined reference to `phy_print_status'
   ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_ioctl':
   drivers/net/ethernet/adi/adin1110.c:790: undefined reference to `phy_do_ioctl'
   ld: drivers/net/ethernet/adi/adin1110.o:(.rodata+0xf60): undefined reference to `phy_ethtool_get_link_ksettings'
   ld: drivers/net/ethernet/adi/adin1110.o:(.rodata+0xf68): undefined reference to `phy_ethtool_set_link_ksettings'

Fixes: bc93e19d088b ("net: ethernet: adi: Add ADIN1110 support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402070626.eZsfVHG5-lkp@intel.com/
Cc: Lennart Franzen <lennart@lfdomain.com>
Cc: Alexandru Tachici <alexandru.tachici@analog.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/ethernet/adi/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/adi/Kconfig b/drivers/net/ethernet/adi/Kconfig
index da3bdd3025022..c91b4dcef4ec2 100644
--- a/drivers/net/ethernet/adi/Kconfig
+++ b/drivers/net/ethernet/adi/Kconfig
@@ -7,6 +7,7 @@ config NET_VENDOR_ADI
 	bool "Analog Devices devices"
 	default y
 	depends on SPI
+	select PHYLIB
 	help
 	  If you have a network (Ethernet) card belonging to this class, say Y.
 
-- 
2.43.0




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 6.7 260/334] net: ethernet: adi: requires PHYLIB support
  2024-02-27 13:21 ` [PATCH 6.7 260/334] net: ethernet: adi: requires PHYLIB support Greg Kroah-Hartman
@ 2024-02-28  8:06   ` Jiri Slaby
  2024-02-28  8:41     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby @ 2024-02-28  8:06 UTC (permalink / raw)
  To: Greg Kroah-Hartman, stable
  Cc: patches, Randy Dunlap, kernel test robot, Lennart Franzen,
	Alexandru Tachici, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, Nuno Sa, Sasha Levin

On 27. 02. 24, 14:21, Greg Kroah-Hartman wrote:
> 6.7-stable review patch.  If anyone has any objections, please let me know.

This patch is not nice and should wait for its fixup IMO:
https://lore.kernel.org/all/20240226074820.29250-1-rdunlap@infradead.org/

It makes PHYLIB=y even when not needed to be actually built in.

> From: Randy Dunlap <rdunlap@infradead.org>
> 
> [ Upstream commit a9f80df4f51440303d063b55bb98720857693821 ]
> 
> This driver uses functions that are supplied by the Kconfig symbol
> PHYLIB, so select it to ensure that they are built as needed.

thanks,
-- 
js
suse labs


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 6.7 260/334] net: ethernet: adi: requires PHYLIB support
  2024-02-28  8:06   ` Jiri Slaby
@ 2024-02-28  8:41     ` Greg Kroah-Hartman
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2024-02-28  8:41 UTC (permalink / raw)
  To: Jiri Slaby
  Cc: stable, patches, Randy Dunlap, kernel test robot, Lennart Franzen,
	Alexandru Tachici, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, Nuno Sa, Sasha Levin

On Wed, Feb 28, 2024 at 09:06:20AM +0100, Jiri Slaby wrote:
> On 27. 02. 24, 14:21, Greg Kroah-Hartman wrote:
> > 6.7-stable review patch.  If anyone has any objections, please let me know.
> 
> This patch is not nice and should wait for its fixup IMO:
> https://lore.kernel.org/all/20240226074820.29250-1-rdunlap@infradead.org/
> 
> It makes PHYLIB=y even when not needed to be actually built in.
> 
> > From: Randy Dunlap <rdunlap@infradead.org>
> > 
> > [ Upstream commit a9f80df4f51440303d063b55bb98720857693821 ]
> > 
> > This driver uses functions that are supplied by the Kconfig symbol
> > PHYLIB, so select it to ensure that they are built as needed.

Now dropped from all queues, thanks!

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-28  8:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20240227131630.636392135@linuxfoundation.org>
2024-02-27 13:21 ` [PATCH 6.7 260/334] net: ethernet: adi: requires PHYLIB support Greg Kroah-Hartman
2024-02-28  8:06   ` Jiri Slaby
2024-02-28  8:41     ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).