drivers/i3c/master/adi-i3c-master.c:134:25: warning: variable 'm' set but not used
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 8f7f8b1b3f4c613dd886f53f768f82816b41eaa3 commit: 3ab1da2614e616ea62f32e4d695f1cc449089f07 [9394/10654] i3c: master: adi: fix header location config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20250919/[email protected]/config) compiler: alpha-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250919/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
drivers/i3c/master/adi-i3c-master.c: In function 'adi_i3c_master_wr_to_tx_fifo':
>> drivers/i3c/master/adi-i3c-master.c:134:25: warning: variable 'm' set but not used [-Wunused-but-set-variable]
134 | unsigned int n, m;
| ^vim +/m +134 drivers/i3c/master/adi-i3c-master.c
a79ac2cdc91d6b Jorge Marques 2025-08-27 130
a79ac2cdc91d6b Jorge Marques 2025-08-27 131 static void adi_i3c_master_wr_to_tx_fifo(struct adi_i3c_master *master,
a79ac2cdc91d6b Jorge Marques 2025-08-27 132 const u8 *buf, unsigned int nbytes)
a79ac2cdc91d6b Jorge Marques 2025-08-27 133 {
a79ac2cdc91d6b Jorge Marques 2025-08-27 @134 unsigned int n, m;
a79ac2cdc91d6b Jorge Marques 2025-08-27 135
a79ac2cdc91d6b Jorge Marques 2025-08-27 136 n = readl(master->regs + REG_SDO_FIFO_ROOM);
a79ac2cdc91d6b Jorge Marques 2025-08-27 137 m = min(n, nbytes);
a79ac2cdc91d6b Jorge Marques 2025-08-27 138 i3c_writel_fifo(master->regs + REG_SDO_FIFO, buf, nbytes);
a79ac2cdc91d6b Jorge Marques 2025-08-27 139 }
a79ac2cdc91d6b Jorge Marques 2025-08-27 140 :::::: The code at line 134 was first introduced by commit
:::::: a79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086 i3c: master: Add driver for Analog Devices I3C Controller IP
:::::: TO: Jorge Marques <[email protected]> :::::: CC: Alexandre Belloni <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki