Re: [PATCH 1/2] [v2] net: ethernet: ti-cpsw: fix linking built-in code to modules

From: Alexander Lobakin
Date: Wed Apr 17 2024 - 07:50:05 EST


From: Arnd Bergmann <arnd@xxxxxxxxxx>
Date: Wed, 17 Apr 2024 10:43:01 +0200

> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> There are six variants of the cpsw driver, sharing various parts of
> the code: davinci-emac, cpsw, cpsw-switchdev, netcp, netcp_ethss and
> am65-cpsw-nuss.

https://lore.kernel.org/all/20221119225650.1044591-10-alobakin@xxxxx

:D

>
> I noticed that this means some files can be linked into more than
> one loadable module, or even part of vmlinux but also linked into
> a loadable module, both of which mess up assumptions of the build
> system.

Thanks,
Olek