Re: [PATCH v2 1/2] mfd: tps65219: Implement LOCK register handling for TPS65214
From: kernel test robot
Date: Thu Nov 06 2025 - 17:19:03 EST
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;
480 int ret;
481
482 if (val > 0xff || reg > 0xff)
483 return -EINVAL;
484
485 tps = i2c_get_clientdata(i2c);
486 ret = i2c_smbus_write_byte_data(i2c, TPS65214_REG_LOCK,
487 TPS65214_LOCK_ACCESS_CMD);
488 if (ret)
489 return ret;
490
491 ret = i2c_smbus_write_byte_data(i2c, reg, val);
492 if (ret)
493 return ret;
494
495 return i2c_smbus_write_byte_data(i2c, TPS65214_REG_LOCK, 0);
496 }
497
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki