Re: [PATCH v5] iio: chemical: scd30: Replace manual locking with RAII locking

From: kernel test robot

Date: Fri May 29 2026 - 09:13:48 EST


Hi Maxwell,

kernel test robot noticed the following build errors:

[auto build test ERROR on jic23-iio/togreg]
[also build test ERROR on linus/master v7.1-rc5 next-20260528]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Maxwell-Doose/iio-chemical-scd30-Replace-manual-locking-with-RAII-locking/20260529-063551
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20260528222906.61561-1-m32285159%40gmail.com
patch subject: [PATCH v5] iio: chemical: scd30: Replace manual locking with RAII locking
config: hexagon-randconfig-r073-20260529 (https://download.01.org/0day-ci/archive/20260529/202605292103.zH0JgWhp-lkp@xxxxxxxxx/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
smatch: v0.5.0-9185-gbcc58b9c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260529/202605292103.zH0JgWhp-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605292103.zH0JgWhp-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/iio/chemical/scd30_core.c:617:8: error: call to undeclared function 'scd30_trigger_handler_helper_locked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
617 | ret = scd30_trigger_handler_helper_locked(indio_dev, scan.data, sizeof(scan.data));
| ^
drivers/iio/chemical/scd30_core.c:617:8: note: did you mean 'scd30_trigger_handler_helper'?
drivers/iio/chemical/scd30_core.c:590:12: note: 'scd30_trigger_handler_helper' declared here
590 | static int scd30_trigger_handler_helper(struct iio_dev *indio_dev, int *scan_data,
| ^
1 error generated.


vim +/scd30_trigger_handler_helper_locked +617 drivers/iio/chemical/scd30_core.c

606
607 static irqreturn_t scd30_trigger_handler(int irq, void *p)
608 {
609 struct iio_poll_func *pf = p;
610 struct iio_dev *indio_dev = pf->indio_dev;
611 struct {
612 int data[SCD30_MEAS_COUNT];
613 aligned_s64 ts;
614 } scan = { };
615 int ret;
616
> 617 ret = scd30_trigger_handler_helper_locked(indio_dev, scan.data, sizeof(scan.data));
618 if (ret)
619 goto out;
620
621 iio_push_to_buffers_with_ts(indio_dev, &scan, sizeof(scan),
622 iio_get_time_ns(indio_dev));
623 out:
624 iio_trigger_notify_done(indio_dev->trig);
625 return IRQ_HANDLED;
626 }
627

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki