[PATCH] arm64/smp: Remove unused variable irq in arch_show_interrupts()

Subsystems: arm64 port (aarch64 architecture), the rest

STALE2036d

4 messages, 3 authors, 2021-01-05 · open the first message on its own page

[PATCH] arm64/smp: Remove unused variable irq in arch_show_interrupts()

From: Keqian Zhu <hidden>
Date: 2021-01-05 09:23:52

The local variable irq is added in commit a26388152531 ("arm64:
Remove custom IRQ stat accounting"), but forget to remove in
commit 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in
arch_show_interrupts()"). Just remove it.

Signed-off-by: Keqian Zhu <redacted>
---
 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.19.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] arm64/smp: Remove unused variable irq in arch_show_interrupts()

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2021-01-05 10:09:47

On Tue, Jan 05, 2021 at 05:22:21PM +0800, Keqian Zhu wrote:
The local variable irq is added in commit a26388152531 ("arm64:
Remove custom IRQ stat accounting"), but forget to remove in
commit 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in
arch_show_interrupts()"). Just remove it.

Signed-off-by: Keqian Zhu <redacted>
I already queued a similar fix in arm64 for-next/fixes (it should appear
in linux-next at some point).

-- 
Catalin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] arm64/smp: Remove unused variable irq in arch_show_interrupts()

From: Keqian Zhu <hidden>
Date: 2021-01-05 10:49:20


On 2021/1/5 18:08, Catalin Marinas wrote:
On Tue, Jan 05, 2021 at 05:22:21PM +0800, Keqian Zhu wrote:
quoted
The local variable irq is added in commit a26388152531 ("arm64:
Remove custom IRQ stat accounting"), but forget to remove in
commit 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in
arch_show_interrupts()"). Just remove it.

Signed-off-by: Keqian Zhu <redacted>
I already queued a similar fix in arm64 for-next/fixes (it should appear
in linux-next at some point).
OK, I see. Thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] arm64/smp: Remove unused variable irq in arch_show_interrupts()

From: Anshuman Khandual <hidden>
Date: 2021-01-05 11:09:47


On 1/5/21 3:38 PM, Catalin Marinas wrote:
On Tue, Jan 05, 2021 at 05:22:21PM +0800, Keqian Zhu wrote:
quoted
The local variable irq is added in commit a26388152531 ("arm64:
Remove custom IRQ stat accounting"), but forget to remove in
commit 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in
arch_show_interrupts()"). Just remove it.

Signed-off-by: Keqian Zhu <redacted>
I already queued a similar fix in arm64 for-next/fixes (it should appear
in linux-next at some point)
I too sent this fix yesterday as well :) as it was preventing a clean
build on v5.11-rc2. Missed to check this on arm64 for-next/fixes though
I did check on linux-next.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help