CC: [email protected] TO: [email protected] TO: Guenter Roeck <[email protected]>
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10 head: b30672701a8fdfb1a5391f189f0f3b6b77bb41d9 commit: d763222bb30e8cec3b2b3e86d9843cc259199c19 [14/35] CHROMIUM: iio: cros_ec_light: Fix illuminance assignment :::::: branch date: 6 days ago :::::: commit date: 7 days ago config: x86_64-randconfig-m031-20211019 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> New smatch warnings: drivers/iio/light/cros_ec_light_prox.c:315 cros_ec_light_push_data() warn: variable dereferenced before check 'st' (see line 313) Old smatch warnings: drivers/iio/light/cros_ec_light_prox.c:232 cros_ec_light_prox_write() warn: '32768' 32768 can't fit into 32767 'st->core.param.sensor_offset.temp' drivers/iio/light/cros_ec_light_prox.c:255 cros_ec_light_prox_write() warn: '32768' 32768 can't fit into 32767 'st->core.param.sensor_offset.temp' vim +/st +315 drivers/iio/light/cros_ec_light_prox.c 48458b0c196c6d6 Gwendal Grignou 2017-01-30 306 ccacca796dd8a76 Gwendal Grignou 2019-05-03 307 static int cros_ec_light_push_data( ccacca796dd8a76 Gwendal Grignou 2019-05-03 308 struct iio_dev *indio_dev, ccacca796dd8a76 Gwendal Grignou 2019-05-03 309 s16 *data, ccacca796dd8a76 Gwendal Grignou 2019-05-03 310 s64 timestamp) ccacca796dd8a76 Gwendal Grignou 2019-05-03 311 { ccacca796dd8a76 Gwendal Grignou 2019-05-03 312 struct cros_ec_sensors_core_state *st = iio_priv(indio_dev); d763222bb30e8ce Gwendal Grignou 2021-09-24 @313 s16 *out = (s16 *)st->samples; ccacca796dd8a76 Gwendal Grignou 2019-05-03 314 ccacca796dd8a76 Gwendal Grignou 2019-05-03 @315 if (!st || !indio_dev->active_scan_mask) ccacca796dd8a76 Gwendal Grignou 2019-05-03 316 return 0; ccacca796dd8a76 Gwendal Grignou 2019-05-03 317 8a75c03a1b7d158 Gwendal Grignou 2020-12-01 318 /* Save clear channel, will be used when RGB data arrives. */ 8a75c03a1b7d158 Gwendal Grignou 2020-12-01 319 if (test_bit(0, indio_dev->active_scan_mask)) d763222bb30e8ce Gwendal Grignou 2021-09-24 320 *out = data[0]; 8a75c03a1b7d158 Gwendal Grignou 2020-12-01 321 8a75c03a1b7d158 Gwendal Grignou 2020-12-01 322 /* Wait for RGB callback to send samples upstream. */ ccacca796dd8a76 Gwendal Grignou 2019-05-03 323 return 0; ccacca796dd8a76 Gwendal Grignou 2019-05-03 324 } ccacca796dd8a76 Gwendal Grignou 2019-05-03 325 :::::: The code at line 315 was first introduced by commit :::::: ccacca796dd8a76d8a80ceeb70f8c9c0adb6531d CHROMIUM: iio: cros_ec_light: Add support for RGB sensor :::::: TO: Gwendal Grignou <[email protected]> :::::: CC: Guenter Roeck <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
