Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace
@ 2026-08-27 10:35 Shawn Guo
  2026-08-27 12:52 ` Andy Shevchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Shawn Guo @ 2026-08-27 10:35 UTC (permalink / raw)
  To: Amit Kucheria, Thara Gopinath, Rafael J . Wysocki, Daniel Lezcano
  Cc: Zhang Rui, Lukasz Luba, Jonathan Cameron, Guenter Roeck,
	Vinod Koul, Sebastian Reichel, Andy Shevchenko, linux-pm,
	linux-arm-msm, linux-kernel, Shawn Guo

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':

  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")
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
 drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/thermal/qcom/qcom-spmi-mbg-tm.c b/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
index 0492d5eeca01..012eb2a5f31f 100644
--- a/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
+++ b/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
@@ -252,5 +252,6 @@ static struct platform_driver mbg_tm_driver = {
 };
 module_platform_driver(mbg_tm_driver);
 
+MODULE_IMPORT_NS("IIO_CONSUMER");
 MODULE_DESCRIPTION("PMIC MBG Temperature monitor driver");
 MODULE_LICENSE("GPL");
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace
  2026-08-27 10:35 [PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace Shawn Guo
@ 2026-08-27 12:52 ` Andy Shevchenko
  2026-08-27 14:35   ` Shawn Guo
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2026-08-27 12:52 UTC (permalink / raw)
  To: Shawn Guo
  Cc: Amit Kucheria, Thara Gopinath, Rafael J . Wysocki, Daniel Lezcano,
	Zhang Rui, Lukasz Luba, Jonathan Cameron, Guenter Roeck,
	Vinod Koul, Sebastian Reichel, linux-pm, linux-arm-msm,
	linux-kernel

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()

>   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?

...

Code wise looks good.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace
  2026-08-27 12:52 ` Andy Shevchenko
@ 2026-08-27 14:35   ` Shawn Guo
  2026-08-28 22:42     ` Jonathan Cameron
  0 siblings, 1 reply; 5+ messages in thread
From: Shawn Guo @ 2026-08-27 14:35 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Amit Kucheria, Thara Gopinath, Rafael J . Wysocki, Daniel Lezcano,
	Zhang Rui, Lukasz Luba, Jonathan Cameron, Guenter Roeck,
	Vinod Koul, Sebastian Reichel, linux-pm, linux-arm-msm,
	linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace
  2026-08-27 14:35   ` Shawn Guo
@ 2026-08-28 22:42     ` Jonathan Cameron
  2026-08-29  9:56       ` Shawn Guo
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2026-08-28 22:42 UTC (permalink / raw)
  To: Shawn Guo
  Cc: Andy Shevchenko, Amit Kucheria, Thara Gopinath,
	Rafael J . Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Guenter Roeck, Vinod Koul, Sebastian Reichel, linux-pm,
	linux-arm-msm, linux-kernel

On Thu, 27 Aug 2026 22:35:27 +0800
Shawn Guo <shengchao.guo@oss.qualcomm.com> wrote:

> 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.

There is a fix on the thermal tree. I though that was enough. Maybe this
races with that fix going upstream?

Jonathan

> 
> > 
> > ...
> > 
> > Code wise looks good.  
> 
> Thank you for the review!
> 
> Shawn


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace
  2026-08-28 22:42     ` Jonathan Cameron
@ 2026-08-29  9:56       ` Shawn Guo
  0 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2026-08-29  9:56 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Andy Shevchenko, Amit Kucheria, Thara Gopinath,
	Rafael J . Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Guenter Roeck, Vinod Koul, Sebastian Reichel, linux-pm,
	linux-arm-msm, linux-kernel

On Fri, Aug 28, 2026 at 11:42:49PM +0100, Jonathan Cameron wrote:
> On Thu, 27 Aug 2026 22:35:27 +0800
> Shawn Guo <shengchao.guo@oss.qualcomm.com> wrote:
> 
> > 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.
> 
> There is a fix on the thermal tree. I though that was enough. Maybe this
> races with that fix going upstream?

Ah, I see! That's a fix from Nathan Chancellor. Ignore mine then.

Thanks Jonathan!

Shawn

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-29  9:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-27 10:35 [PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace Shawn Guo
2026-08-27 12:52 ` Andy Shevchenko
2026-08-27 14:35   ` Shawn Guo
2026-08-28 22:42     ` Jonathan Cameron
2026-08-29  9:56       ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox