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/rohm-bu27008.c:646 bu27008_try_find_new_time_gain() error: uninitialized symbol 'new_time_sel'.
Date: Mon, 6 Nov 2023 23:05:26 +0800 [thread overview]
Message-ID: <202311062303.3scVBcKu-lkp@intel.com> (raw)
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
next reply other threads:[~2023-11-06 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-06 15:05 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-07-17 15:45 drivers/iio/light/rohm-bu27008.c:646 bu27008_try_find_new_time_gain() error: uninitialized symbol 'new_time_sel' 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=202311062303.3scVBcKu-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.