All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/iio/light/veml6030.c:479 veml6030_read_persistence() error: uninitialized symbol 'y'.
Date: Sat, 13 Dec 2025 08:33:26 +0800	[thread overview]
Message-ID: <202512130855.lVoURL3r-lkp@intel.com> (raw)

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, &reg);
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

             reply	other threads:[~2025-12-13  0:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-13  0:33 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-12-12 14:42 drivers/iio/light/veml6030.c:479 veml6030_read_persistence() error: uninitialized symbol 'y' kernel test robot

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=202512130855.lVoURL3r-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@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.