From 3591abd7452bcb7f030072b318e25d292732ad44 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Sat, 17 May 2014 23:19:32 +1000 Subject: [PATCH] nmi-provide-the-option-to-issue-an-nmi-back-trace-to-every-cpu-but-current-fix undo C99ism Signed-off-by: Stephen Rothwell Cc: Aaron Tomlin Cc: Don Zickus Cc: David S. Miller Cc: Mateusz Guzik Cc: Oleg Nesterov Signed-off-by: Andrew Morton --- arch/sparc/kernel/process_64.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c index 65b405c36421..9975a6dbca0a 100644 --- a/arch/sparc/kernel/process_64.c +++ b/arch/sparc/kernel/process_64.c @@ -261,10 +261,12 @@ void arch_trigger_all_cpu_backtrace(bool include_self) smp_fetch_global_regs(); for_each_online_cpu(cpu) { + struct global_reg_snapshot *gp; + if (!include_self && cpu == this_cpu) continue; - struct global_reg_snapshot *gp = &global_cpu_snapshot[cpu].reg; + gp = &global_cpu_snapshot[cpu].reg; __global_reg_poll(gp); -- 2.39.5