* drivers/iio/light/veml6030.c:479 veml6030_read_persistence() error: uninitialized symbol 'y'.
@ 2025-12-12 14:42 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-12 14:42 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Javier Carrasco <javier.carrasco.cruz@gmail.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 187d0801404f415f22c0b31531982c7ea97fa341
commit: 22eaca4283b216f5e1f7721e4ad0ecb3d23c6774 iio: light: veml6030: fix scale to conform to ABI
date: 10 months ago
:::::: branch date: 5 hours ago
:::::: commit date: 10 months ago
config: x86_64-randconfig-161-20251212 (https://download.01.org/0day-ci/archive/20251212/202512122250.yNH7lwTV-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202512122250.yNH7lwTV-lkp@intel.com/
New smatch warnings:
drivers/iio/light/veml6030.c:479 veml6030_read_persistence() error: uninitialized symbol 'y'.
Old smatch warnings:
drivers/iio/light/veml6030.c:498 veml6030_write_persistence() error: uninitialized symbol 'y'.
drivers/iio/light/veml6030.c:501 veml6030_write_persistence() error: uninitialized symbol 'y'.
drivers/iio/light/veml6030.c:503 veml6030_write_persistence() error: uninitialized symbol 'y'.
drivers/iio/light/veml6030.c:505 veml6030_write_persistence() error: uninitialized symbol 'y'.
vim +/y +479 drivers/iio/light/veml6030.c
7b779f573c48e1 Rishi Gupta 2019-11-04 461
7b779f573c48e1 Rishi Gupta 2019-11-04 462 static int veml6030_read_persistence(struct iio_dev *indio_dev,
7b779f573c48e1 Rishi Gupta 2019-11-04 463 int *val, int *val2)
7b779f573c48e1 Rishi Gupta 2019-11-04 464 {
7b779f573c48e1 Rishi Gupta 2019-11-04 465 int ret, reg, period, x, y;
7b779f573c48e1 Rishi Gupta 2019-11-04 466 struct veml6030_data *data = iio_priv(indio_dev);
7b779f573c48e1 Rishi Gupta 2019-11-04 467
22eaca4283b216 Javier Carrasco 2025-01-27 468 ret = veml6030_get_it(data, &x, &y);
7b779f573c48e1 Rishi Gupta 2019-11-04 469 if (ret < 0)
7b779f573c48e1 Rishi Gupta 2019-11-04 470 return ret;
7b779f573c48e1 Rishi Gupta 2019-11-04 471
7b779f573c48e1 Rishi Gupta 2019-11-04 472 ret = regmap_read(data->regmap, VEML6030_REG_ALS_CONF, ®);
7b779f573c48e1 Rishi Gupta 2019-11-04 473 if (ret) {
7b779f573c48e1 Rishi Gupta 2019-11-04 474 dev_err(&data->client->dev,
7b779f573c48e1 Rishi Gupta 2019-11-04 475 "can't read als conf register %d\n", ret);
7b779f573c48e1 Rishi Gupta 2019-11-04 476 }
7b779f573c48e1 Rishi Gupta 2019-11-04 477
7b779f573c48e1 Rishi Gupta 2019-11-04 478 /* integration time multiplied by 1/2/4/8 */
7b779f573c48e1 Rishi Gupta 2019-11-04 @479 period = y * (1 << ((reg >> 4) & 0x03));
7b779f573c48e1 Rishi Gupta 2019-11-04 480
7b779f573c48e1 Rishi Gupta 2019-11-04 481 *val = period / 1000000;
7b779f573c48e1 Rishi Gupta 2019-11-04 482 *val2 = period % 1000000;
7b779f573c48e1 Rishi Gupta 2019-11-04 483
7b779f573c48e1 Rishi Gupta 2019-11-04 484 return IIO_VAL_INT_PLUS_MICRO;
7b779f573c48e1 Rishi Gupta 2019-11-04 485 }
7b779f573c48e1 Rishi Gupta 2019-11-04 486
:::::: The code at line 479 was first introduced by commit
:::::: 7b779f573c48e1ad6da1d6ea5f181f3ecd666bf6 iio: light: add driver for veml6030 ambient light sensor
:::::: TO: Rishi Gupta <gupt21@gmail.com>
:::::: CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* drivers/iio/light/veml6030.c:479 veml6030_read_persistence() error: uninitialized symbol 'y'.
@ 2025-12-13 0:33 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-13 0:33 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Javier Carrasco <javier.carrasco.cruz@gmail.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 187d0801404f415f22c0b31531982c7ea97fa341
commit: 22eaca4283b216f5e1f7721e4ad0ecb3d23c6774 iio: light: veml6030: fix scale to conform to ABI
date: 10 months ago
:::::: branch date: 14 hours ago
:::::: commit date: 10 months ago
config: x86_64-randconfig-161-20251212 (https://download.01.org/0day-ci/archive/20251213/202512130855.lVoURL3r-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202512130855.lVoURL3r-lkp@intel.com/
New smatch warnings:
drivers/iio/light/veml6030.c:479 veml6030_read_persistence() error: uninitialized symbol 'y'.
Old smatch warnings:
drivers/iio/light/veml6030.c:498 veml6030_write_persistence() error: uninitialized symbol 'y'.
drivers/iio/light/veml6030.c:501 veml6030_write_persistence() error: uninitialized symbol 'y'.
drivers/iio/light/veml6030.c:503 veml6030_write_persistence() error: uninitialized symbol 'y'.
drivers/iio/light/veml6030.c:505 veml6030_write_persistence() error: uninitialized symbol 'y'.
vim +/y +479 drivers/iio/light/veml6030.c
7b779f573c48e1 Rishi Gupta 2019-11-04 461
7b779f573c48e1 Rishi Gupta 2019-11-04 462 static int veml6030_read_persistence(struct iio_dev *indio_dev,
7b779f573c48e1 Rishi Gupta 2019-11-04 463 int *val, int *val2)
7b779f573c48e1 Rishi Gupta 2019-11-04 464 {
7b779f573c48e1 Rishi Gupta 2019-11-04 465 int ret, reg, period, x, y;
7b779f573c48e1 Rishi Gupta 2019-11-04 466 struct veml6030_data *data = iio_priv(indio_dev);
7b779f573c48e1 Rishi Gupta 2019-11-04 467
22eaca4283b216 Javier Carrasco 2025-01-27 468 ret = veml6030_get_it(data, &x, &y);
7b779f573c48e1 Rishi Gupta 2019-11-04 469 if (ret < 0)
7b779f573c48e1 Rishi Gupta 2019-11-04 470 return ret;
7b779f573c48e1 Rishi Gupta 2019-11-04 471
7b779f573c48e1 Rishi Gupta 2019-11-04 472 ret = regmap_read(data->regmap, VEML6030_REG_ALS_CONF, ®);
7b779f573c48e1 Rishi Gupta 2019-11-04 473 if (ret) {
7b779f573c48e1 Rishi Gupta 2019-11-04 474 dev_err(&data->client->dev,
7b779f573c48e1 Rishi Gupta 2019-11-04 475 "can't read als conf register %d\n", ret);
7b779f573c48e1 Rishi Gupta 2019-11-04 476 }
7b779f573c48e1 Rishi Gupta 2019-11-04 477
7b779f573c48e1 Rishi Gupta 2019-11-04 478 /* integration time multiplied by 1/2/4/8 */
7b779f573c48e1 Rishi Gupta 2019-11-04 @479 period = y * (1 << ((reg >> 4) & 0x03));
7b779f573c48e1 Rishi Gupta 2019-11-04 480
7b779f573c48e1 Rishi Gupta 2019-11-04 481 *val = period / 1000000;
7b779f573c48e1 Rishi Gupta 2019-11-04 482 *val2 = period % 1000000;
7b779f573c48e1 Rishi Gupta 2019-11-04 483
7b779f573c48e1 Rishi Gupta 2019-11-04 484 return IIO_VAL_INT_PLUS_MICRO;
7b779f573c48e1 Rishi Gupta 2019-11-04 485 }
7b779f573c48e1 Rishi Gupta 2019-11-04 486
:::::: The code at line 479 was first introduced by commit
:::::: 7b779f573c48e1ad6da1d6ea5f181f3ecd666bf6 iio: light: add driver for veml6030 ambient light sensor
:::::: TO: Rishi Gupta <gupt21@gmail.com>
:::::: CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-13 0:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-13 0:33 drivers/iio/light/veml6030.c:479 veml6030_read_persistence() error: uninitialized symbol 'y' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2025-12-12 14:42 kernel test robot
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.