Re: [PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace

From: Shawn Guo

Date: Thu Aug 27 2026 - 10:35:51 EST


On Thu, Aug 27, 2026 at 03:52:42PM +0300, Andy Shevchenko wrote:
> On Thu, Aug 27, 2026 at 06:35:55PM +0800, Shawn Guo wrote:
> > The IIO consumer interface symbols moved into the IIO_CONSUMER namespace,
> > so consumers must import it explicitly. Without it modpost fails on
>
> > 'iio_read_channel_processed' and 'devm_iio_channel_get':
>
> iio_read_channel_processed()
> devm_iio_channel_get()

Sure, will update.

>
> > ERROR: modpost: drivers/thermal/qcom/qcom-spmi-mbg-tm.ko: module uses
> > symbol 'iio_read_channel_processed' from namespace 'IIO_CONSUMER', but
> > does not import it.
>
> > Fixes: ebf1d03dab96 ("iio: inkern: Use namespaced exports")
>
> Shouldn't this be backported to stable kernels?

The offending commit just landed on mainline during this merge window.
So there is no stable kernels concerned by this.

>
> ...
>
> Code wise looks good.

Thank you for the review!

Shawn