Re: [PATCH v3 4/4] iio: light: ltr501: Add support for the LTR-659PS-01 proximity sensor

From: Jonathan Cameron

Date: Sat Nov 14 2026 - 17:59:55 EST


On Sat, 14 Nov 2026 16:45:02 +0200
Svyatoslav Ryhel <clamor95@xxxxxxxxx> wrote:

> пн, 9 лист. 2026 р. о 22:07 Svyatoslav Ryhel <clamor95@xxxxxxxxx> пише:
> >
> > пн, 9 лист. 2026 р. о 22:04 Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> пише:
> > >
> > > On Mon, Nov 09, 2026 at 05:48:09AM +0800, kernel test robot wrote:
> > > >
> > > > kernel test robot noticed the following build errors:
> > >
> > > ...
> > >
> > > > All errors (new ones prefixed by >>, old ones prefixed by <<):
> > > >
> > > > WARNING: modpost: vmlinux: section mismatch in reference: trace_initcall_level+0x28 (section: .text.unlikely) -> initcall_level_names (section: .init.data)
> > > > WARNING: modpost: vmlinux: section mismatch in reference: __arch_xprod_64+0xac (section: .text.unlikely) -> initcall_level_names (section: .init.data)
> > > > >> ERROR: modpost: drivers/iio/light/ltr501.ko: symbol 'iio_find_channel_from_si' undefined!
> > >
> > > Forgot to import namespace?
> > >
> >
> > It is not exported in the core
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/iio/industrialio-core.c?h=next-20261109#n319
> >
>
> Should I export it? Do you have any suggestions?

Sure. Export this one. It is a very simple helper so I have no concerns
about it being used in drivers rather than opencoding the same loop
(which I suspect some are doing!)

>
> > > --
> > > With Best Regards,
> > > Andy Shevchenko
> > >
> > >