m68k: Fix assembler constraint to prevent overeager gcc optimisation
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 9 Jan 2012 14:10:15 +0000 (15:10 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 22 Jan 2012 13:50:20 +0000 (14:50 +0100)
commit2a3535069e33d8b416f406c159ce924427315303
tree2de8aa3a94215260fe91b0edb1c8f5d685413d04
parentc808d3d839ab70c87a6c9356c50569c87661378e
m68k: Fix assembler constraint to prevent overeager gcc optimisation

Passing the address of a variable as an operand to an asm statement
doesn't mark the value of this variable as used, so gcc may optimize its
initialisation away.  Fix this by using the "m" constraint instead.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: stable@vger.kernel.org
arch/m68k/atari/config.c
arch/m68k/kernel/process_mm.c
arch/m68k/kernel/process_no.c
arch/m68k/kernel/traps.c
arch/m68k/mm/cache.c