[PATCH 5.11 232/329] sh: Remove unused variable

From
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date
2021-05-17 15:39:45
Also in
lkml
Reply to
Greg Kroah-Hartman, 2021-05-17
From: Eric Dumazet <redacted>

commit 0d3ae948741ac6d80e39ab27b45297367ee477de upstream.

Removes this annoying warning:

arch/sh/kernel/traps.c: In function ‘nmi_trap_handler’:
arch/sh/kernel/traps.c:183:15: warning: unused variable ‘cpu’ [-Wunused-variable]
  183 |  unsigned int cpu = smp_processor_id();

Fixes: fe3f1d5d7cd3 ("sh: Get rid of nmi_count()")
Signed-off-by: Eric Dumazet <redacted>
Signed-off-by: Thomas Gleixner <redacted>
Cc: <redacted>
Link: https://lore.kernel.org/r/20210414170517.1205430-1-eric.dumazet@gmail.com (local)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 arch/sh/kernel/traps.c |    1 -
 1 file changed, 1 deletion(-)
--- a/arch/sh/kernel/traps.c
+++ b/arch/sh/kernel/traps.c
@@ -180,7 +180,6 @@ static inline void arch_ftrace_nmi_exit(
 
 BUILD_TRAP_HANDLER(nmi)
 {
-	unsigned int cpu = smp_processor_id();
 	TRAP_HANDLER_DECL;
 
 	arch_ftrace_nmi_enter();

Thread (337 messages) 337 messages, 8 authors, last reply 2021-05-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help