powerpc: mark local variables around longjmp as volatile
[platform/kernel/linux-rpi.git] / arch / powerpc / kexec / crash.c
index 0196d0c..10f997e 100644 (file)
@@ -105,8 +105,8 @@ void crash_ipi_callback(struct pt_regs *regs)
 static void crash_kexec_prepare_cpus(int cpu)
 {
        unsigned int msecs;
-       unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */
-       int tries = 0;
+       volatile unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */
+       volatile int tries = 0;
        int (*old_handler)(struct pt_regs *regs);
 
        printk(KERN_EMERG "Sending IPI to other CPUs\n");