From: Steven Rostedt Date: Tue, 25 Nov 2008 05:42:37 +0000 (-0500) Subject: x86: use limited register constraint for setnz X-Git-Tag: v2.6.28-rc7~45^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5cf02b7bafddb6c3c16ddfb23d3ce187f70528ba;p=linux-2.6-omap-h63xx.git x86: use limited register constraint for setnz Impact: build fix with certain compilers GCC can decide to use %dil when "r" is used, which is not valid for setnz. This bug was brought out by Stephen Rothwell's merging of the branch tracer into linux-next. [ Thanks to Uros Bizjak for recommending 'q' over 'Q' ] Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/boot/tty.c b/arch/x86/boot/tty.c index 0be77b39328..7e8e8b25f5f 100644 --- a/arch/x86/boot/tty.c +++ b/arch/x86/boot/tty.c @@ -74,7 +74,7 @@ static int kbd_pending(void) { u8 pending; asm volatile("int $0x16; setnz %0" - : "=rm" (pending) + : "=qm" (pending) : "a" (0x0100)); return pending; }