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

From: kernel test robot

Date: Thu Nov 05 2026 - 13:29:15 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.3 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: arc-randconfig-1000-20261105 (https://download.01.org/0day-ci/archive/20261106/202611060115.RlOXqnls-lkp@xxxxxxxxx/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261106/202611060115.RlOXqnls-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/202611060115.RlOXqnls-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from drivers/iio/chemical/ccs811.c:18:
drivers/iio/chemical/ccs811.c: In function 'ccs811_write_raw':
>> include/linux/cleanup.h:298:2: error: a label can only be part of a statement and a declaration is not a statement
class_##_name##_t var __cleanup(class_##_name##_destructor) = \
^~~~~~
include/linux/cleanup.h:422:34: note: in expansion of macro 'CLASS'
#define ACQUIRE(_name, _var) CLASS(_name, _var)
^~~~~
include/linux/iio/iio.h:817:2: note: in expansion of macro 'ACQUIRE'
ACQUIRE(__priv__iio_dev_mode_lock_try_direct, claim)(dev)
^~~~~~~
drivers/iio/chemical/ccs811.c:354:3: note: in expansion of macro 'IIO_DEV_ACQUIRE_DIRECT_MODE'
IIO_DEV_ACQUIRE_DIRECT_MODE(indio_dev, claim);
^~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +298 include/linux/cleanup.h

54da6a0924311c7 Peter Zijlstra 2023-05-26 293
2deccd5c862a033 Peter Zijlstra 2026-03-09 294 #define EXTEND_CLASS(_name, ext, _init, _init_args...) \
2deccd5c862a033 Peter Zijlstra 2026-03-09 295 EXTEND_CLASS_COND(_name, ext, 0, _init, _init_args)
2deccd5c862a033 Peter Zijlstra 2026-03-09 296
54da6a0924311c7 Peter Zijlstra 2023-05-26 297 #define CLASS(_name, var) \
54da6a0924311c7 Peter Zijlstra 2023-05-26 @298 class_##_name##_t var __cleanup(class_##_name##_destructor) = \
54da6a0924311c7 Peter Zijlstra 2023-05-26 299 class_##_name##_constructor
54da6a0924311c7 Peter Zijlstra 2023-05-26 300

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