Skip to content

Commit

Permalink
sh: Remove unused variable
Browse files Browse the repository at this point in the history
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: fe3f1d5 ("sh: Get rid of nmi_count()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210414170517.1205430-1-eric.dumazet@gmail.com
  • Loading branch information
Eric Dumazet authored and Thomas Gleixner committed May 10, 2021
1 parent 6efb943 commit 0d3ae94
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/sh/kernel/traps.c
Original file line number Diff line number Diff line change
@@ -180,7 +180,6 @@ static inline void arch_ftrace_nmi_exit(void) { }

BUILD_TRAP_HANDLER(nmi)
{
unsigned int cpu = smp_processor_id();
TRAP_HANDLER_DECL;

arch_ftrace_nmi_enter();

0 comments on commit 0d3ae94

Please sign in to comment.