Skip to contentSkip to conversation

arm64/smp: Remove unused 'irq' variable

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 30, 2020 – Jan 4, 2021 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64/smp: Remove unused 'irq' variable

From: Arnd Bergmann <[email protected]>

The only use of this variable was removed in a recent patch:

arch/arm64/kernel/smp.c:810:16: error: unused variable 'irq' [-Werror,-Wunused-variable]

                unsigned int irq = irq_desc_get_irq(ipi_desc[i]);
Fixes 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()")
---
 arch/arm64/kernel/smp.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/kernel/smp.c +0 -1
index 6bc3a3698c3d..376343d6f13a 100644
@@ -807,7 +807,6 @@ int arch_show_interrupts(struct seq_file *p, int prec)
 	unsigned int cpu, i;
 
 	for (i = 0; i < NR_IPI; i++) {
-		unsigned int irq = irq_desc_get_irq(ipi_desc[i]);
 		seq_printf(p, "%*s%u:%s", prec - 1, "IPI", i,
 			   prec >= 4 ? " " : "");
 		for_each_online_cpu(cpu)
Signature · 1 line
2.29.2
maintainer
#1 lore raw
Quoted 9 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The only use of this variable was removed in a recent patch:

arch/arm64/kernel/smp.c:810:16: error: unused variable 'irq' [-Werror,-Wunused-variable]

                unsigned int irq = irq_desc_get_irq(ipi_desc[i]);
Fixes 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()")

Thanks. I applied Geert's fix already.

Signature · 1 line
Catalin