m68k: Fix assembler constraint to prevent overeager gcc optimisation
commitb1cd343b25d514e77850db6971c5066b0f0645dd
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 9 Jan 2012 14:10:15 +0000 (9 15:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:21:38 +0000 (3 09:21 -0800)
treed95e6b949bc749682f712c9cb9dcc007e754be5a
parent26e15e85d0ede680bf326933731ce4d2ec48fe82
m68k: Fix assembler constraint to prevent overeager gcc optimisation

commit 2a3535069e33d8b416f406c159ce924427315303 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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