]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
nmi-provide-the-option-to-issue-an-nmi-back-trace-to-every-cpu-but-current-fix
authorStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:19:32 +0000 (23:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 May 2014 07:11:41 +0000 (17:11 +1000)
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>
arch/sparc/kernel/process_64.c

index f3a694f4335ecc68fe64e7897a420a066b297a2f..027e099861947655bc59583b0f2a715ac1fb10f2 100644 (file)
@@ -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);