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

From: Biju Das
Date: Sat Mar 29 2025 - 03:24:25 EST


Hi Wolfram,

Thanks for the feedback.

> -----Original Message-----
> From: Wolfram Sang <wsa-dev@xxxxxxxxxxxxxxxxxxxx>
> Sent: 29 March 2025 07:17
> Subject: Re: drivers/mmc/host/renesas_sdhi_core.c:951: undefined reference to `rdev_get_drvdata'
>
>
> > CONFIG_REGULATOR is not enabled in arm-randconfig-r111-20250328 that
> > is leading to this build issue.
> >
> > I will send a fix by "select REGULATOR" in config MMC_SDHI
>
> What about using MMC_SDHI_INTERNAL_DMAC? So we leave out at least older SDHI instances. Ideally, we
> would say "select ... if <family>" but this will easily be missed in updates. Maybe the above is a
> fair compromise.
> Those systems will likely have regulators enabled anyhow.

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.

Cheers,
Biju