* [PATCH] arm64/smp: Remove unused 'irq' variable
@ 2020-12-30 15:45 Arnd Bergmann
2021-01-04 11:18 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2020-12-30 15:45 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Thomas Gleixner, Marc Zyngier
Cc: Mark Rutland, Andrew Morton, linux-arm-kernel, Arnd Bergmann,
linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
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()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/arm64/kernel/smp.c | 1 -
1 file changed, 1 deletion(-)
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)
--
2.29.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] arm64/smp: Remove unused 'irq' variable
2020-12-30 15:45 [PATCH] arm64/smp: Remove unused 'irq' variable Arnd Bergmann
@ 2021-01-04 11:18 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2021-01-04 11:18 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Mark Rutland, Arnd Bergmann, Marc Zyngier, linux-kernel,
Thomas Gleixner, Will Deacon, Andrew Morton, linux-arm-kernel
On Wed, Dec 30, 2020 at 04:45:04PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> 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()")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Thanks. I applied Geert's fix already.
--
Catalin
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-04 11:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-30 15:45 [PATCH] arm64/smp: Remove unused 'irq' variable Arnd Bergmann
2021-01-04 11:18 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).