Skip to content
Permalink
Browse files
arm64/smp: Remove unused irq variable in arch_show_interrupts()
    arch/arm64/kernel/smp.c: In function ‘arch_show_interrupts’:
    arch/arm64/kernel/smp.c:808:16: warning: unused variable ‘irq’ [-Wunused-variable]
      808 |   unsigned int irq = irq_desc_get_irq(ipi_desc[i]);
	  |                ^~~

The removal of the last user forgot to remove the variable.

Fixes: 2f516e3 ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
  • Loading branch information
geertu authored and intel-lab-lkp committed Dec 15, 2020
1 parent 95d1718 commit 846fff4a14d7c14a353d85b97cf8fbd625f4a887
Showing 1 changed file with 0 additions and 1 deletion.
@@ -805,7 +805,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)

0 comments on commit 846fff4

Please sign in to comment.