Subject: Re: of_mdio: Checking build dependencies

From: Andrew Lunn <[email-masked]>
Date: Thu, 11 Mar 2021 17:26:34 +0100

On Wed, Mar 10, 2021 at 09:31:07PM +0100, Markus Elfring wrote:
> Hello,
> 
> I would like to build the Linux version “5.11.5” for my needs.
> But I stumbled on the following information.
> 
> …
>   AR      drivers/built-in.a
>   LD [M]  drivers/visorbus/visorbus.o
>   GEN     .version
>   CHK     include/generated/compile.h
> error: the following would cause module name conflict:
>   drivers/net/mdio/of_mdio.ko
>   drivers/of/of_mdio.ko

Hi Markus

Something wrong here. There should not be any of_mdio.ko in
drivers/of. That was the whole point of the patch you referenced, it
moved this file to drivers/net/mdio/. Please check where your
drivers/of/of_mdio.ko comes from. Has there been a bad merge conflict
resolution? Or is it left over from an older build?

   Andrew