All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/iio/light/rohm-bu27008.c:646 bu27008_try_find_new_time_gain() error: uninitialized symbol 'new_time_sel'.
@ 2023-11-06 15:05 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-11-06 15:05 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: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>, Matti Vaittinen <mazziesaccount@gmail.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d2f51b3516dade79269ff45eae2a7668ae711b25
commit: 41ff93d14f784695b5019bc1451dfd4eb2b30d9d iio: light: ROHM BU27008 color sensor
date:   6 months ago
:::::: branch date: 12 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-161-20231102 (https://download.01.org/0day-ci/archive/20231106/202311062303.3scVBcKu-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce: (https://download.01.org/0day-ci/archive/20231106/202311062303.3scVBcKu-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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202311062303.3scVBcKu-lkp@intel.com/

smatch warnings:
drivers/iio/light/rohm-bu27008.c:646 bu27008_try_find_new_time_gain() error: uninitialized symbol 'new_time_sel'.

vim +/new_time_sel +646 drivers/iio/light/rohm-bu27008.c

41ff93d14f7846 Matti Vaittinen 2023-05-08  626  
41ff93d14f7846 Matti Vaittinen 2023-05-08  627  /* Called if the new scale could not be supported with existing int-time */
41ff93d14f7846 Matti Vaittinen 2023-05-08  628  static int bu27008_try_find_new_time_gain(struct bu27008_data *data, int val,
41ff93d14f7846 Matti Vaittinen 2023-05-08  629  					  int val2, int *gain_sel)
41ff93d14f7846 Matti Vaittinen 2023-05-08  630  {
41ff93d14f7846 Matti Vaittinen 2023-05-08  631  	int i, ret, new_time_sel;
41ff93d14f7846 Matti Vaittinen 2023-05-08  632  
41ff93d14f7846 Matti Vaittinen 2023-05-08  633  	for (i = 0; i < data->gts.num_itime; i++) {
41ff93d14f7846 Matti Vaittinen 2023-05-08  634  		new_time_sel = data->gts.itime_table[i].sel;
41ff93d14f7846 Matti Vaittinen 2023-05-08  635  		ret = iio_gts_find_gain_sel_for_scale_using_time(&data->gts,
41ff93d14f7846 Matti Vaittinen 2023-05-08  636  					new_time_sel, val, val2 * 1000, gain_sel);
41ff93d14f7846 Matti Vaittinen 2023-05-08  637  		if (!ret)
41ff93d14f7846 Matti Vaittinen 2023-05-08  638  			break;
41ff93d14f7846 Matti Vaittinen 2023-05-08  639  	}
41ff93d14f7846 Matti Vaittinen 2023-05-08  640  	if (i == data->gts.num_itime) {
41ff93d14f7846 Matti Vaittinen 2023-05-08  641  		dev_err(data->dev, "Can't support scale %u %u\n", val, val2);
41ff93d14f7846 Matti Vaittinen 2023-05-08  642  
41ff93d14f7846 Matti Vaittinen 2023-05-08  643  		return -EINVAL;
41ff93d14f7846 Matti Vaittinen 2023-05-08  644  	}
41ff93d14f7846 Matti Vaittinen 2023-05-08  645  
41ff93d14f7846 Matti Vaittinen 2023-05-08 @646  	return bu27008_set_int_time_sel(data, new_time_sel);
41ff93d14f7846 Matti Vaittinen 2023-05-08  647  }
41ff93d14f7846 Matti Vaittinen 2023-05-08  648  

-- 
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/rohm-bu27008.c:646 bu27008_try_find_new_time_gain() error: uninitialized symbol 'new_time_sel'.
@ 2023-07-17 15:45 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-07-17 15:45 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: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>, Matti Vaittinen <mazziesaccount@gmail.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fdf0eaf11452d72945af31804e2a1048ee1b574c
commit: 41ff93d14f784695b5019bc1451dfd4eb2b30d9d iio: light: ROHM BU27008 color sensor
date:   8 weeks ago
:::::: branch date: 18 hours ago
:::::: commit date: 8 weeks ago
config: x86_64-randconfig-m001-20230717 (https://download.01.org/0day-ci/archive/20230717/202307172333.rYRqanZw-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230717/202307172333.rYRqanZw-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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202307172333.rYRqanZw-lkp@intel.com/

smatch warnings:
drivers/iio/light/rohm-bu27008.c:646 bu27008_try_find_new_time_gain() error: uninitialized symbol 'new_time_sel'.

vim +/new_time_sel +646 drivers/iio/light/rohm-bu27008.c

41ff93d14f7846 Matti Vaittinen 2023-05-08  626  
41ff93d14f7846 Matti Vaittinen 2023-05-08  627  /* Called if the new scale could not be supported with existing int-time */
41ff93d14f7846 Matti Vaittinen 2023-05-08  628  static int bu27008_try_find_new_time_gain(struct bu27008_data *data, int val,
41ff93d14f7846 Matti Vaittinen 2023-05-08  629  					  int val2, int *gain_sel)
41ff93d14f7846 Matti Vaittinen 2023-05-08  630  {
41ff93d14f7846 Matti Vaittinen 2023-05-08  631  	int i, ret, new_time_sel;
41ff93d14f7846 Matti Vaittinen 2023-05-08  632  
41ff93d14f7846 Matti Vaittinen 2023-05-08  633  	for (i = 0; i < data->gts.num_itime; i++) {
41ff93d14f7846 Matti Vaittinen 2023-05-08  634  		new_time_sel = data->gts.itime_table[i].sel;
41ff93d14f7846 Matti Vaittinen 2023-05-08  635  		ret = iio_gts_find_gain_sel_for_scale_using_time(&data->gts,
41ff93d14f7846 Matti Vaittinen 2023-05-08  636  					new_time_sel, val, val2 * 1000, gain_sel);
41ff93d14f7846 Matti Vaittinen 2023-05-08  637  		if (!ret)
41ff93d14f7846 Matti Vaittinen 2023-05-08  638  			break;
41ff93d14f7846 Matti Vaittinen 2023-05-08  639  	}
41ff93d14f7846 Matti Vaittinen 2023-05-08  640  	if (i == data->gts.num_itime) {
41ff93d14f7846 Matti Vaittinen 2023-05-08  641  		dev_err(data->dev, "Can't support scale %u %u\n", val, val2);
41ff93d14f7846 Matti Vaittinen 2023-05-08  642  
41ff93d14f7846 Matti Vaittinen 2023-05-08  643  		return -EINVAL;
41ff93d14f7846 Matti Vaittinen 2023-05-08  644  	}
41ff93d14f7846 Matti Vaittinen 2023-05-08  645  
41ff93d14f7846 Matti Vaittinen 2023-05-08 @646  	return bu27008_set_int_time_sel(data, new_time_sel);
41ff93d14f7846 Matti Vaittinen 2023-05-08  647  }
41ff93d14f7846 Matti Vaittinen 2023-05-08  648  

-- 
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:[~2023-11-06 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-06 15:05 drivers/iio/light/rohm-bu27008.c:646 bu27008_try_find_new_time_gain() error: uninitialized symbol 'new_time_sel' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2023-07-17 15:45 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.