Re: [PATCH v5] iio: chemical: ccs811: Make sampling frequency configurable

From: kernel test robot

Date: Thu Nov 05 2026 - 16:14:23 EST


Hi Nikhil,

kernel test robot noticed the following build errors:

[auto build test ERROR on jic23-iio/togreg]
[also build test ERROR on linus/master v7.4-rc1 next-20261105]
[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/Nikhil-Gautam/iio-chemical-ccs811-Make-sampling-frequency-configurable/20261104-204138
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20261104151138.9968-1-nikhilgtr%40gmail.com
patch subject: [PATCH v5] iio: chemical: ccs811: Make sampling frequency configurable
config: x86_64-randconfig-1004-20261105 (https://download.01.org/0day-ci/archive/20261106/202611060402.20veo4W8-lkp@xxxxxxxxx/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261106/202611060402.20veo4W8-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/202611060402.20veo4W8-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/iio/chemical/ccs811.c:359:2: error: cannot jump from switch statement to this case label
359 | default:
| ^
drivers/iio/chemical/ccs811.c:354:42: note: jump bypasses initialization of variable with __attribute__((cleanup))
354 | IIO_DEV_ACQUIRE_DIRECT_MODE(indio_dev, claim);
| ^
1 error generated.


vim +359 drivers/iio/chemical/ccs811.c

345
346 static int ccs811_write_raw(struct iio_dev *indio_dev,
347 struct iio_chan_spec const *chan,
348 int val, int val2, long mask)
349 {
350 struct ccs811_data *data = iio_priv(indio_dev);
351
352 switch (mask) {
353 case IIO_CHAN_INFO_SAMP_FREQ:
354 IIO_DEV_ACQUIRE_DIRECT_MODE(indio_dev, claim);
355 if (IIO_DEV_ACQUIRE_FAILED(claim))
356 return -EBUSY;
357
358 return ccs811_set_sampling_freq(data, val, val2);
> 359 default:
360 return -EINVAL;
361 }
362 }
363

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