[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YrHHyZNJXVme1JIe@shell.armlinux.org.uk>
Date: Tue, 21 Jun 2022 14:29:45 +0100
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Zheng Bin <zhengbin13@...wei.com>
Cc: andrew@...n.ch, hkallweit1@...il.com, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
boon.leong.ong@...el.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, gaochao49@...wei.com
Subject: Re: [PATCH -next] net: pcs: pcs-xpcs: Fix build error when
CONFIG_PCS_XPCS=y && CONFIG_PHYLINK=m
On Tue, Jun 21, 2022 at 09:12:51PM +0800, Zheng Bin wrote:
> If CONFIG_PCS_XPCS=y, CONFIG_PHYLINK=m, bulding fails:
>
> drivers/net/pcs/pcs-xpcs.o: in function `xpcs_do_config':
> pcs-xpcs.c:(.text+0x64f): undefined reference to `phylink_mii_c22_pcs_encode_advertisement'
> drivers/net/pcs/pcs-xpcs.o: in function `xpcs_get_state':
> pcs-xpcs.c:(.text+0x10f8): undefined reference to `phylink_mii_c22_pcs_decode_state
>
> Make PCS_XPCS depends on PHYLINK to fix this.
>
> Fixes: b47aec885bcd ("net: pcs: xpcs: add CL37 1000BASE-X AN support")
> Signed-off-by: Zheng Bin <zhengbin13@...wei.com>
Paolo Abeni has already sent a patch, which I think is addressing a
similar issue. Please see:
https://lore.kernel.org/r/6959a6a51582e8bc2343824d0cee56f1db246e23.1655797997.git.pabeni@redhat.com
Thanks.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists