[tip:irq/core 23/30] drivers/irqchip/irq-armada-370-xp.c:263:44: error: 'd' undeclared

From: kernel test robot
Date: Mon Jul 29 2024 - 20:38:22 EST


Hi Marek,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
head: e626fcbaa9b67e4488ea437e0e8a5657e707d5f8
commit: f72976cd7f0e16639f29398d5fe5ab1b03789b42 [23/30] irqchip/armada-370-xp: Use consistent name for struct irq_data variables
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20240730/202407300832.j5i0hRhx-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240730/202407300832.j5i0hRhx-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/202407300832.j5i0hRhx-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/irqchip/irq-armada-370-xp.c: In function 'mpic_msi_set_affinity':
>> drivers/irqchip/irq-armada-370-xp.c:263:44: error: 'd' undeclared (first use in this function)
263 | irq_data_update_effective_affinity(d, cpumask_of(cpu));
| ^
drivers/irqchip/irq-armada-370-xp.c:263:44: note: each undeclared identifier is reported only once for each function it appears in


vim +/d +263 drivers/irqchip/irq-armada-370-xp.c

250
251 static int mpic_msi_set_affinity(struct irq_data *irq_data, const struct cpumask *mask, bool force)
252 {
253 unsigned int cpu;
254
255 if (!force)
256 cpu = cpumask_any_and(mask, cpu_online_mask);
257 else
258 cpu = cpumask_first(mask);
259
260 if (cpu >= nr_cpu_ids)
261 return -EINVAL;
262
> 263 irq_data_update_effective_affinity(d, cpumask_of(cpu));
264
265 return IRQ_SET_MASK_OK;
266 }
267

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki