CC: [email protected]
In-Reply-To: 
<639bd97975a7420f6357bdc6161e1fc427fca79d.1607085199.git.matti.vaitti...@fi.rohmeurope.com>
References: 
<639bd97975a7420f6357bdc6161e1fc427fca79d.1607085199.git.matti.vaitti...@fi.rohmeurope.com>
TO: Matti Vaittinen <[email protected]>, Matti Vaittinen 
<[email protected]>

Hi Matti,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on 09162bc32c880a791c6c0668ce0745cf7958f576]

url:    
https://github.com/0day-ci/linux/commits/Matti-Vaittinen/power-supply-Add-some-fuel-gauge-logic/20201204-205731
base:    09162bc32c880a791c6c0668ce0745cf7958f576
:::::: branch date: 35 hours ago
:::::: commit date: 35 hours ago
config: i386-randconfig-m021-20201205 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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]>

smatch warnings:
drivers/power/supply/power_supply_swgauge.c:108 swgauge_set_cycle() error: 
uninitialized symbol 'ret'.
drivers/power/supply/power_supply_swgauge.c:960 psy_register_sw_gauge() warn: 
inconsistent indenting
drivers/power/supply/power_supply_swgauge.c:972 psy_register_sw_gauge() warn: 
passing zero to 'ERR_PTR'
drivers/power/supply/power_supply_swgauge.c:984 psy_remove_sw_gauge() warn: 
variable dereferenced before check 'sw' (see line 978)

vim +/ret +108 drivers/power/supply/power_supply_swgauge.c

d7d68650b1fb6d Matti Vaittinen 2020-12-04   97  
d7d68650b1fb6d Matti Vaittinen 2020-12-04   98  static int 
swgauge_set_cycle(struct sw_gauge *sw, int new_cycle)
d7d68650b1fb6d Matti Vaittinen 2020-12-04   99  {
d7d68650b1fb6d Matti Vaittinen 2020-12-04  100          int ret, old_cycle = 
sw->cycle;
d7d68650b1fb6d Matti Vaittinen 2020-12-04  101  
d7d68650b1fb6d Matti Vaittinen 2020-12-04  102          if 
(!sw->desc->allow_set_cycle && !sw->ops.set_cycle)
d7d68650b1fb6d Matti Vaittinen 2020-12-04  103                  return -EINVAL;
d7d68650b1fb6d Matti Vaittinen 2020-12-04  104  
d7d68650b1fb6d Matti Vaittinen 2020-12-04  105          if (sw->ops.set_cycle)
d7d68650b1fb6d Matti Vaittinen 2020-12-04  106                  ret = 
sw->ops.set_cycle(sw, old_cycle, &new_cycle);
d7d68650b1fb6d Matti Vaittinen 2020-12-04  107  
d7d68650b1fb6d Matti Vaittinen 2020-12-04 @108          if (!ret)
d7d68650b1fb6d Matti Vaittinen 2020-12-04  109                  sw->cycle = 
new_cycle;
d7d68650b1fb6d Matti Vaittinen 2020-12-04  110  
d7d68650b1fb6d Matti Vaittinen 2020-12-04  111          return ret;
d7d68650b1fb6d Matti Vaittinen 2020-12-04  112  }
d7d68650b1fb6d Matti Vaittinen 2020-12-04  113  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to