From: "Nuno Sá" <noname.nuno@gmail.com>
To: Randy Dunlap <rdunlap@infradead.org>, linux-kernel@vger.kernel.org
Cc: kernel test robot <lkp@intel.com>,
Lennart Franzen <lennart@lfdomain.com>,
Alexandru Tachici <alexandru.tachici@analog.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH] net: ethernet: adi: requires PHYLIB support
Date: Thu, 15 Feb 2024 09:10:33 +0100 [thread overview]
Message-ID: <be512dfd907d3d0a30aac8d055605d519d7c7613.camel@gmail.com> (raw)
In-Reply-To: <20240215070050.2389-1-rdunlap@infradead.org>
On Wed, 2024-02-14 at 23:00 -0800, Randy Dunlap wrote:
> 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>
> drivers/net/ethernet/adi/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff -- a/drivers/net/ethernet/adi/Kconfig b/drivers/net/ethernet/adi/Kconfig
> --- 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.
>
next prev parent reply other threads:[~2024-02-15 8:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 7:00 [PATCH] net: ethernet: adi: requires PHYLIB support Randy Dunlap
2024-02-15 8:10 ` Nuno Sá [this message]
2024-02-16 9:50 ` patchwork-bot+netdevbpf
2024-02-26 6:44 ` Michal Kubecek
2024-02-26 6:50 ` Randy Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be512dfd907d3d0a30aac8d055605d519d7c7613.camel@gmail.com \
--to=noname.nuno@gmail.com \
--cc=alexandru.tachici@analog.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=lennart@lfdomain.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rdunlap@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).