All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/regulator/core.c:915 bypass_show() error: uninitialized symbol 'bypass'.
@ 2021-12-06 18:10 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-06 18:10 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3091 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: YueHaibing <yuehaibing@huawei.com>
CC: Mark Brown <broonie@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1
commit: a277a2622ca9609de09c18f660f0d10f1ddbb379 regulator: core: Use DEVICE_ATTR_RO macro
date:   6 months ago
:::::: branch date: 20 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-m001-20211206 (https://download.01.org/0day-ci/archive/20211207/202112070226.lmm37w25-lkp(a)intel.com/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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
drivers/regulator/core.c:915 bypass_show() error: uninitialized symbol 'bypass'.

Old smatch warnings:
drivers/regulator/core.c:129 regulator_ops_is_valid() error: we previously assumed 'rdev->constraints' could be null (see line 128)
drivers/regulator/core.c:4159 regulator_get_voltage_rdev() error: uninitialized symbol 'bypassed'.

vim +/bypass +915 drivers/regulator/core.c

7ad68e2f970fd8 David Brownell 2008-11-11  902  
a277a2622ca960 YueHaibing     2021-05-29  903  static ssize_t bypass_show(struct device *dev,
f59c8f9fe68979 Mark Brown     2012-08-31  904  			   struct device_attribute *attr, char *buf)
f59c8f9fe68979 Mark Brown     2012-08-31  905  {
f59c8f9fe68979 Mark Brown     2012-08-31  906  	struct regulator_dev *rdev = dev_get_drvdata(dev);
f59c8f9fe68979 Mark Brown     2012-08-31  907  	const char *report;
f59c8f9fe68979 Mark Brown     2012-08-31  908  	bool bypass;
f59c8f9fe68979 Mark Brown     2012-08-31  909  	int ret;
f59c8f9fe68979 Mark Brown     2012-08-31  910  
f59c8f9fe68979 Mark Brown     2012-08-31  911  	ret = rdev->desc->ops->get_bypass(rdev, &bypass);
f59c8f9fe68979 Mark Brown     2012-08-31  912  
f59c8f9fe68979 Mark Brown     2012-08-31  913  	if (ret != 0)
f59c8f9fe68979 Mark Brown     2012-08-31  914  		report = "unknown";
f59c8f9fe68979 Mark Brown     2012-08-31 @915  	else if (bypass)
f59c8f9fe68979 Mark Brown     2012-08-31  916  		report = "enabled";
f59c8f9fe68979 Mark Brown     2012-08-31  917  	else
f59c8f9fe68979 Mark Brown     2012-08-31  918  		report = "disabled";
f59c8f9fe68979 Mark Brown     2012-08-31  919  
f59c8f9fe68979 Mark Brown     2012-08-31  920  	return sprintf(buf, "%s\n", report);
f59c8f9fe68979 Mark Brown     2012-08-31  921  }
a277a2622ca960 YueHaibing     2021-05-29  922  static DEVICE_ATTR_RO(bypass);
bc558a60b58f63 Mark Brown     2008-10-10  923  

:::::: The code at line 915 was first introduced by commit
:::::: f59c8f9fe689790248ae7aa7426579982050638c regulator: core: Support bypass mode

:::::: TO: Mark Brown <broonie@opensource.wolfsonmicro.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/regulator/core.c:915 bypass_show() error: uninitialized symbol 'bypass'.
@ 2021-12-07 13:14 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-07 13:14 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3089 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: YueHaibing <yuehaibing@huawei.com>
CC: Mark Brown <broonie@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   cd8c917a56f20f48748dd43d9ae3caff51d5b987
commit: a277a2622ca9609de09c18f660f0d10f1ddbb379 regulator: core: Use DEVICE_ATTR_RO macro
date:   6 months ago
:::::: branch date: 12 hours ago
:::::: commit date: 6 months ago
config: i386-randconfig-m021-20211206 (https://download.01.org/0day-ci/archive/20211207/202112072157.hRgTlxI6-lkp(a)intel.com/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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
drivers/regulator/core.c:915 bypass_show() error: uninitialized symbol 'bypass'.

Old smatch warnings:
drivers/regulator/core.c:129 regulator_ops_is_valid() error: we previously assumed 'rdev->constraints' could be null (see line 128)
drivers/regulator/core.c:4159 regulator_get_voltage_rdev() error: uninitialized symbol 'bypassed'.

vim +/bypass +915 drivers/regulator/core.c

7ad68e2f970fd8 David Brownell 2008-11-11  902  
a277a2622ca960 YueHaibing     2021-05-29  903  static ssize_t bypass_show(struct device *dev,
f59c8f9fe68979 Mark Brown     2012-08-31  904  			   struct device_attribute *attr, char *buf)
f59c8f9fe68979 Mark Brown     2012-08-31  905  {
f59c8f9fe68979 Mark Brown     2012-08-31  906  	struct regulator_dev *rdev = dev_get_drvdata(dev);
f59c8f9fe68979 Mark Brown     2012-08-31  907  	const char *report;
f59c8f9fe68979 Mark Brown     2012-08-31  908  	bool bypass;
f59c8f9fe68979 Mark Brown     2012-08-31  909  	int ret;
f59c8f9fe68979 Mark Brown     2012-08-31  910  
f59c8f9fe68979 Mark Brown     2012-08-31  911  	ret = rdev->desc->ops->get_bypass(rdev, &bypass);
f59c8f9fe68979 Mark Brown     2012-08-31  912  
f59c8f9fe68979 Mark Brown     2012-08-31  913  	if (ret != 0)
f59c8f9fe68979 Mark Brown     2012-08-31  914  		report = "unknown";
f59c8f9fe68979 Mark Brown     2012-08-31 @915  	else if (bypass)
f59c8f9fe68979 Mark Brown     2012-08-31  916  		report = "enabled";
f59c8f9fe68979 Mark Brown     2012-08-31  917  	else
f59c8f9fe68979 Mark Brown     2012-08-31  918  		report = "disabled";
f59c8f9fe68979 Mark Brown     2012-08-31  919  
f59c8f9fe68979 Mark Brown     2012-08-31  920  	return sprintf(buf, "%s\n", report);
f59c8f9fe68979 Mark Brown     2012-08-31  921  }
a277a2622ca960 YueHaibing     2021-05-29  922  static DEVICE_ATTR_RO(bypass);
bc558a60b58f63 Mark Brown     2008-10-10  923  

:::::: The code at line 915 was first introduced by commit
:::::: f59c8f9fe689790248ae7aa7426579982050638c regulator: core: Support bypass mode

:::::: TO: Mark Brown <broonie@opensource.wolfsonmicro.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-07 13:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 18:10 drivers/regulator/core.c:915 bypass_show() error: uninitialized symbol 'bypass' kernel test robot
2021-12-07 13:14 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.