From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753032AbYKYHWe (ORCPT ); Tue, 25 Nov 2008 02:22:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752738AbYKYHWY (ORCPT ); Tue, 25 Nov 2008 02:22:24 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:51949 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751287AbYKYHWX (ORCPT ); Tue, 25 Nov 2008 02:22:23 -0500 Date: Tue, 25 Nov 2008 08:22:09 +0100 From: Ingo Molnar To: Steven Rostedt Cc: LKML , Thomas Gleixner , Andrew Morton , Linus Torvalds , Stephen Rothwell , linux-next@vger.kernel.org Subject: Re: [PATCH] use limited register constraint for setnz Message-ID: <20081125072209.GC9660@elte.hu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Steven Rostedt wrote: > Impact: fix in compiling > > 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. > > Signed-off-by: Steven Rostedt > > diff --git a/arch/x86/boot/tty.c b/arch/x86/boot/tty.c > index 0be77b3..c2121d2 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; > } applied to tip/x86/urgent, thanks Steve! Ingo