Re: [PATCH v2 1/2] mfd: tps65219: Implement LOCK register handling for TPS65214
From: Lee Jones
Date: Mon Nov 10 2025 - 08:42:38 EST
On Fri, 07 Nov 2025, kernel test robot wrote:
> Hi Kory,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on 1c353dc8d962de652bc7ad2ba2e63f553331391c]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Kory-Maincent-TI-com/mfd-tps65219-Implement-LOCK-register-handling-for-TPS65214/20251106-185551
> base: 1c353dc8d962de652bc7ad2ba2e63f553331391c
> patch link: https://lore.kernel.org/r/20251106-fix_tps65219-v2-1-a7d608c4272f%40bootlin.com
> patch subject: [PATCH v2 1/2] mfd: tps65219: Implement LOCK register handling for TPS65214
> config: i386-buildonly-randconfig-003-20251107 (https://download.01.org/0day-ci/archive/20251107/202511070607.Il9q9meO-lkp@xxxxxxxxx/config)
> compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251107/202511070607.Il9q9meO-lkp@xxxxxxxxx/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@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202511070607.Il9q9meO-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):
>
> drivers/mfd/tps65219.c: In function 'tps65214_reg_write':
> >> drivers/mfd/tps65219.c:479:26: warning: variable 'tps' set but not used [-Wunused-but-set-variable]
> 479 | struct tps65219 *tps;
> | ^~~
>
>
> vim +/tps +479 drivers/mfd/tps65219.c
>
> 475
> 476 static int tps65214_reg_write(void *context, unsigned int reg, unsigned int val)
> 477 {
> 478 struct i2c_client *i2c = context;
> > 479 struct tps65219 *tps;
Please fix.
--
Lee Jones [李琼斯]