Re: [PATCH] powerpc: mark local variables around longjmp as volatile

2021-06-26 Thread Michael Ellerman
On Thu, 29 Apr 2021 10:06:38 +0200, Arnd Bergmann wrote: > gcc-11 points out that modifying local variables next to a > longjmp/setjmp may cause undefined behavior: > > arch/powerpc/kexec/crash.c: In function 'crash_kexec_prepare_cpus.constprop': > arch/powerpc/kexec/crash.c:108:22: error: variabl

Re: [PATCH] powerpc: mark local variables around longjmp as volatile

2021-06-25 Thread Christophe Leroy
Le 29/04/2021 à 10:06, Arnd Bergmann a écrit : From: Arnd Bergmann gcc-11 points out that modifying local variables next to a longjmp/setjmp may cause undefined behavior: arch/powerpc/kexec/crash.c: In function 'crash_kexec_prepare_cpus.constprop': arch/powerpc/kexec/crash.c:108:22: error:

[PATCH] powerpc: mark local variables around longjmp as volatile

2021-04-29 Thread Arnd Bergmann
From: Arnd Bergmann gcc-11 points out that modifying local variables next to a longjmp/setjmp may cause undefined behavior: arch/powerpc/kexec/crash.c: In function 'crash_kexec_prepare_cpus.constprop': arch/powerpc/kexec/crash.c:108:22: error: variable 'ncpus' might be clobbered by 'longjmp' or