[PATCH v5 4/5] power: supply: max77759: add charger driver
kernel test robot
lkp at intel.com
Tue Feb 3 21:34:09 PST 2026
Hi Amit,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 8dfce8991b95d8625d0a1d2896e42f93b9d7f68d]
url: https://github.com/intel-lab-lkp/linux/commits/Amit-Sunil-Dhamne-via-B4-Relay/dt-bindings-mfd-maxim-max77759-reference-power-supply-schema-and-add-regulator-property/20260204-065326
base: 8dfce8991b95d8625d0a1d2896e42f93b9d7f68d
patch link: https://lore.kernel.org/r/20260203-max77759-charger-v5-4-b50395376a5f%40google.com
patch subject: [PATCH v5 4/5] power: supply: max77759: add charger driver
config: sparc-randconfig-001-20260204 (https://download.01.org/0day-ci/archive/20260204/202602041321.6ubHpkpR-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260204/202602041321.6ubHpkpR-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602041321.6ubHpkpR-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/power/supply/max77759_charger.c: In function 'set_fast_charge_current_limit':
>> drivers/power/supply/max77759_charger.c:301:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^~~
drivers/power/supply/max77759_charger.c: In function 'set_float_voltage_limit':
drivers/power/supply/max77759_charger.c:343:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^~~
vim +/ret +301 drivers/power/supply/max77759_charger.c
295
296 static int set_fast_charge_current_limit(struct max77759_charger *chg,
297 u32 cc_max_ua)
298 {
299 bool found;
300 u32 regval;
> 301 int ret;
302
303 ret = linear_range_get_selector_high(&chg_ranges[MAX77759_CHGR_RANGE_CHGCC],
304 cc_max_ua, ®val, &found);
305 if (!found)
306 return -EINVAL;
307
308 return regmap_update_bits(chg->regmap, MAX77759_CHGR_REG_CHG_CNFG_02,
309 MAX77759_CHGR_REG_CHG_CNFG_02_CHGCC, regval);
310 }
311
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list