summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2014-05-17 23:19:32 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-05-19 17:35:07 +1000
commit3591abd7452bcb7f030072b318e25d292732ad44 (patch)
treea8ea3bfa5db91cfd67b2bae78a82c540e654065c
parentef0d7a931c4101579a9f572fd21668f19cf08a0a (diff)
nmi-provide-the-option-to-issue-an-nmi-back-trace-to-every-cpu-but-current-fix
undo C99ism Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Aaron Tomlin <atomlin@redhat.com> Cc: Don Zickus <dzickus@redhat.com> Cc: David S. Miller <davem@davemloft.net> Cc: Mateusz Guzik <mguzik@redhat.com> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--arch/sparc/kernel/process_64.c4
1 files changed, 3 insertions, 1 deletions
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);