RE: drivers/mmc/host/renesas_sdhi_core.c:951: undefined reference to `rdev_get_drvdata'

From: Biju Das
Date: Sat Mar 29 2025 - 03:38:18 EST


Wolfram,

> -----Original Message-----
> From: Wolfram Sang <wsa-dev@xxxxxxxxxxxxxxxxxxxx>
> Sent: 29 March 2025 07:28
> To: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> Cc: kernel test robot <lkp@xxxxxxxxx>; oe-kbuild-all@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx;
> Ulf Hansson <ulf.hansson@xxxxxxxxxx>
> Subject: Re: drivers/mmc/host/renesas_sdhi_core.c:951: undefined reference to `rdev_get_drvdata'
>
>
> > The changes were done in SDHI core (renesas_sdhi_core.c).
> >
> > Like this, if a random config in that architecture has
> > CONFIG_REGULATOR undefined will lead to the same error.
>
> True :( Not happy, but I don't want to over-complicate things. Most systems will have regulators
> enabled anyhow...

CLK address this issue by adding inline function for such systems where COMMON_CLK is undefined
Not sure about Regulator should do same for sytems that have Regulator undefined?

Cheers,
Biju