Message ID | 20201228115349.57334-1-wsa+renesas@sang-engineering.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | arm64: smp: remove unused variable | expand |
On Mon, Dec 28, 2020 at 12:55 PM Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > Not used anymore after refactoring: > > arch/arm64/kernel/smp.c: In function ‘arch_show_interrupts’: > arch/arm64/kernel/smp.c:810:16: warning: unused variable ‘irq’ [-Wunused-variable] > 810 | unsigned int irq = irq_desc_get_irq(ipi_desc[i]); > > Fixes: 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()") > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Marc Zyngier <maz@kernel.org> Fix sent 13 days ago: https://lore.kernel.org/linux-arm-kernel/20201215103026.2872532-1-geert+renesas@glider.be/ Note that the Fixes tag in my patch is different, as apparently the offending commit was rebased a few hours later. Gr{oetje,eeting}s, Geert
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 6bc3a3698c3d..376343d6f13a 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -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)
Not used anymore after refactoring: arch/arm64/kernel/smp.c: In function ‘arch_show_interrupts’: arch/arm64/kernel/smp.c:810:16: warning: unused variable ‘irq’ [-Wunused-variable] 810 | unsigned int irq = irq_desc_get_irq(ipi_desc[i]); Fixes: 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()") Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Marc Zyngier <maz@kernel.org> --- arch/arm64/kernel/smp.c | 1 - 1 file changed, 1 deletion(-)