From: kernel test robot <lkp@intel.com>
To: Nikhil Gautam <nikhilgtr@gmail.com>, linux-iio@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com,
andy@kernel.org, linux-kernel@vger.kernel.org,
Nikhil Gautam <nikhilgtr@gmail.com>
Subject: Re: [PATCH] iio: chemical: ccs811: Make sampling frequency configurable
Date: Mon, 19 Oct 2026 15:26:00 +0800 [thread overview]
Message-ID: <202610191533.IG7DYuci-lkp@intel.com> (raw)
In-Reply-To: <20261018170013.79443-1-nikhilgtr@gmail.com>
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-20261016]
[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/20261018-223013
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20261018170013.79443-1-nikhilgtr%40gmail.com
patch subject: [PATCH] iio: chemical: ccs811: Make sampling frequency configurable
config: i386-buildonly-randconfig-1003-20261019 (https://download.01.org/0day-ci/archive/20261019/202610191533.IG7DYuci-lkp@intel.com/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/20261019/202610191533.IG7DYuci-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610191533.IG7DYuci-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/iio/chemical/ccs811.c:389:2: error: cannot jump from switch statement to this case label
389 | default:
| ^
drivers/iio/chemical/ccs811.c:371:3: note: jump bypasses initialization of variable with __attribute__((cleanup))
371 | guard(mutex)(&data->lock);
| ^
include/linux/cleanup.h:423:2: note: expanded from macro 'guard'
423 | CLASS(_name, __UNIQUE_ID(guard))
| ^
include/linux/cleanup.h:303:3: note: expanded from macro 'CLASS'
303 | class_##_name##_constructor
| ^
<scratch space>:136:1: note: expanded from here
136 | class_mutex_constructor
| ^
note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:16:23: note: expanded from macro '__PASTE'
16 | #define __PASTE(a, b) ___PASTE(a, b)
| ^
include/linux/compiler_types.h:15:24: note: expanded from macro '___PASTE'
15 | #define ___PASTE(a, b) a##b
| ^
<scratch space>:142:1: note: expanded from here
142 | __UNIQUE_ID_unlock_406
| ^
drivers/iio/chemical/ccs811.c:371:3: note: jump bypasses initialization of variable with __attribute__((cleanup))
include/linux/cleanup.h:423:15: note: expanded from macro 'guard'
423 | CLASS(_name, __UNIQUE_ID(guard))
| ^
include/linux/compiler.h:165:2: note: expanded from macro '__UNIQUE_ID'
165 | __PASTE(__UNIQUE_ID_, \
| ^
include/linux/compiler_types.h:16:23: note: expanded from macro '__PASTE'
16 | #define __PASTE(a, b) ___PASTE(a, b)
| ^
include/linux/compiler_types.h:15:24: note: expanded from macro '___PASTE'
15 | #define ___PASTE(a, b) a##b
| ^
<scratch space>:130:1: note: expanded from here
130 | __UNIQUE_ID_guard_405
| ^
1 error generated.
vim +389 drivers/iio/chemical/ccs811.c
1a2cae129fb93c Nikhil Gautam 2026-10-18 325
fef6da136ef283 Jonathan Cameron 2025-03-31 326 static int ccs811_read_raw(struct iio_dev *indio_dev,
fef6da136ef283 Jonathan Cameron 2025-03-31 327 struct iio_chan_spec const *chan,
fef6da136ef283 Jonathan Cameron 2025-03-31 328 int *val, int *val2, long mask)
fef6da136ef283 Jonathan Cameron 2025-03-31 329 {
fef6da136ef283 Jonathan Cameron 2025-03-31 330 struct ccs811_data *data = iio_priv(indio_dev);
fef6da136ef283 Jonathan Cameron 2025-03-31 331 int ret;
fef6da136ef283 Jonathan Cameron 2025-03-31 332
fef6da136ef283 Jonathan Cameron 2025-03-31 333 switch (mask) {
fef6da136ef283 Jonathan Cameron 2025-03-31 334 case IIO_CHAN_INFO_RAW:
e9786c540804c3 Jonathan Cameron 2025-03-31 335 if (!iio_device_claim_direct(indio_dev))
e9786c540804c3 Jonathan Cameron 2025-03-31 336 return -EBUSY;
fef6da136ef283 Jonathan Cameron 2025-03-31 337
fef6da136ef283 Jonathan Cameron 2025-03-31 338 ret = ccs811_read_info_raw(data, chan, val, mask);
fef6da136ef283 Jonathan Cameron 2025-03-31 339
e9786c540804c3 Jonathan Cameron 2025-03-31 340 iio_device_release_direct(indio_dev);
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 341
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 342 return ret;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 343
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 344 case IIO_CHAN_INFO_SCALE:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 345 switch (chan->type) {
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 346 case IIO_VOLTAGE:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 347 *val = 1;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 348 *val2 = 612903;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 349 return IIO_VAL_INT_PLUS_MICRO;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 350 case IIO_CURRENT:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 351 *val = 0;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 352 *val2 = 1000;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 353 return IIO_VAL_INT_PLUS_MICRO;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 354 case IIO_CONCENTRATION:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 355 switch (chan->channel2) {
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 356 case IIO_MOD_CO2:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 357 *val = 0;
8f114acd4e1a9c Narcisa Ana Maria Vasile 2017-12-06 358 *val2 = 100;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 359 return IIO_VAL_INT_PLUS_MICRO;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 360 case IIO_MOD_VOC:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 361 *val = 0;
8f114acd4e1a9c Narcisa Ana Maria Vasile 2017-12-06 362 *val2 = 100;
8f114acd4e1a9c Narcisa Ana Maria Vasile 2017-12-06 363 return IIO_VAL_INT_PLUS_NANO;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 364 default:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 365 return -EINVAL;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 366 }
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 367 default:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 368 return -EINVAL;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 369 }
1a2cae129fb93c Nikhil Gautam 2026-10-18 370 case IIO_CHAN_INFO_SAMP_FREQ:
1a2cae129fb93c Nikhil Gautam 2026-10-18 371 guard(mutex)(&data->lock);
1a2cae129fb93c Nikhil Gautam 2026-10-18 372 switch (data->drive_mode) {
1a2cae129fb93c Nikhil Gautam 2026-10-18 373 case CCS811_MODE_IAQ_1SEC:
1a2cae129fb93c Nikhil Gautam 2026-10-18 374 *val = 1;
1a2cae129fb93c Nikhil Gautam 2026-10-18 375 *val2 = 0;
1a2cae129fb93c Nikhil Gautam 2026-10-18 376 return IIO_VAL_INT_PLUS_MICRO;
1a2cae129fb93c Nikhil Gautam 2026-10-18 377 case CCS811_MODE_IAQ_10SEC:
1a2cae129fb93c Nikhil Gautam 2026-10-18 378 *val = 0;
1a2cae129fb93c Nikhil Gautam 2026-10-18 379 *val2 = 100000;
1a2cae129fb93c Nikhil Gautam 2026-10-18 380 return IIO_VAL_INT_PLUS_MICRO;
1a2cae129fb93c Nikhil Gautam 2026-10-18 381 case CCS811_MODE_IAQ_60SEC:
1a2cae129fb93c Nikhil Gautam 2026-10-18 382 *val = 0;
1a2cae129fb93c Nikhil Gautam 2026-10-18 383 *val2 = 16667;
1a2cae129fb93c Nikhil Gautam 2026-10-18 384 return IIO_VAL_INT_PLUS_MICRO;
1a2cae129fb93c Nikhil Gautam 2026-10-18 385 default:
1a2cae129fb93c Nikhil Gautam 2026-10-18 386 return -EINVAL;
1a2cae129fb93c Nikhil Gautam 2026-10-18 387 }
1a2cae129fb93c Nikhil Gautam 2026-10-18 388
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 @389 default:
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 390 return -EINVAL;
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 391 }
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 392 }
a94c24a712acb2 Narcisa Ana Maria Vasile 2017-07-17 393
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-10-19 7:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-18 17:00 [PATCH] iio: chemical: ccs811: Make sampling frequency configurable Nikhil Gautam
2026-10-19 7:26 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202610191533.IG7DYuci-lkp@intel.com \
--to=lkp@intel.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=nikhilgtr@gmail.com \
--cc=nuno.sa@analog.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.