[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d412433b-032a-9ed9-81aa-fe3f7c6d50d5@denx.de>
Date: Mon, 25 Jan 2021 13:32:35 +0100
From: Marek Vasut <marex@...x.de>
To: Arnd Bergmann <arnd@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, Andrew Lunn <andrew@...n.ch>
Cc: Arnd Bergmann <arnd@...db.de>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [5.8 regression] net: ks8851: fix link error
On 1/25/21 1:19 PM, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> An object file cannot be built for both loadable module and built-in
> use at the same time:
>
> arm-linux-gnueabi-ld: drivers/net/ethernet/micrel/ks8851_common.o: in function `ks8851_probe_common':
> ks8851_common.c:(.text+0xf80): undefined reference to `__this_module'
>
> Change the ks8851_common code to be a standalone module instead,
> and use Makefile logic to ensure this is built-in if at least one
> of its two users is.
>
> Fixes: 797047f875b5 ("net: ks8851: Implement Parallel bus operations")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> Marek sent two other patches to address the problem:
> https://lore.kernel.org/netdev/20210116164828.40545-1-marex@denx.de/
> https://lore.kernel.org/netdev/20210115134239.126152-1-marex@denx.de/
>
> My version is what I applied locally to my randconfig tree, and
> I think this is the cleanest solution.
If this version works for all the configuration combinations, then
that's perfect, thanks.
Powered by blists - more mailing lists