Re: linux-next: Tree for May 18 (drivers/net/dsa/qca8k.c)

From: Vladimir Oltean
Date: Tue May 18 2021 - 12:43:57 EST


Hi Randy,

On Tue, May 18, 2021 at 09:32:49AM -0700, Randy Dunlap wrote:
> On 5/18/21 2:27 AM, Stephen Rothwell wrote:
> > Hi all,
> >
> > Changes since 20210514:
> >
>
> on x86_64:
> # CONFIG_OF is not set
>
> ../drivers/net/dsa/qca8k.c: In function ‘qca8k_mdio_register’:
> ../drivers/net/dsa/qca8k.c:797:9: error: implicit declaration of function ‘devm_of_mdiobus_register’; did you mean ‘devm_mdiobus_register’? [-Werror=implicit-function-declaration]
> return devm_of_mdiobus_register(priv->dev, bus, mdio);
>
>
> Should there be a stub for this function in <linux/of_mdio.h>?
> or the driver could add a dependency on OF_MDIO.
>
> Full randconfig file is attached.
>
> --
> ~Randy
> Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
>

Would something like this work?

-----------------------------[ cut here ]-----------------------------