[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202602041321.6ubHpkpR-lkp@intel.com>
Date: Wed, 4 Feb 2026 13:34:09 +0800
From: kernel test robot <lkp@...el.com>
To: Amit Sunil Dhamne via B4 Relay <devnull+amitsd.google.com@...nel.org>,
Sebastian Reichel <sre@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
André Draszik <andre.draszik@...aro.org>,
Lee Jones <lee@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Badhri Jagan Sridharan <badhri@...gle.com>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
Peter Griffin <peter.griffin@...aro.org>,
Tudor Ambarus <tudor.ambarus@...aro.org>,
Alim Akhtar <alim.akhtar@...sung.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
linux-usb@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org,
RD Babiera <rdbabiera@...gle.com>, Kyle Tso <kyletso@...gle.com>,
Amit Sunil Dhamne <amitsd@...gle.com>
Subject: Re: [PATCH v5 4/5] power: supply: max77759: add charger driver
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@...el.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
Powered by blists - more mailing lists