CC: [email protected]
CC: [email protected]
TO: YueHaibing <[email protected]>
CC: Mark Brown <[email protected]>

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/[email protected]/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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

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 <[email protected]>
:::::: CC: Mark Brown <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to