From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1E0ECB70AB for ; Fri, 30 Jul 2010 17:04:52 +1000 (EST) Subject: Re: [PATCH] Adjust arch/powerpc inline asms for recent gcc change From: Benjamin Herrenschmidt To: Jakub Jelinek In-Reply-To: <1278569285.28659.76.camel@pasglop> References: <20100625095606.GG12443@tyan-ft48-01.lab.bos.redhat.com> <1278569285.28659.76.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Date: Fri, 30 Jul 2010 17:04:46 +1000 Message-ID: <1280473486.2169.2.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2010-07-08 at 16:08 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2010-06-25 at 11:56 +0200, Jakub Jelinek wrote: > > > static inline void sync(void) > > diff --git a/arch/powerpc/include/asm/atomic.h b/arch/powerpc/include/asm/atomic.h > > index b8f152e..288d8b2 100644 > > --- a/arch/powerpc/include/asm/atomic.h > > +++ b/arch/powerpc/include/asm/atomic.h > > @@ -19,14 +19,14 @@ static __inline__ int atomic_read(const atomic_t *v) > > { > > int t; > > > > - __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m"(v->counter)); > > + __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m<>"(v->counter)); > > > > return t; > > } > > > > This gives me: > > /home/benh/linux-powerpc-test/arch/powerpc/kernel/time.c: In function ‘timer_interrupt’: > /home/benh/linux-powerpc-test/arch/powerpc/include/asm/atomic.h:22: error: ‘asm’ operand has impossible constraints > make[2]: *** [arch/powerpc/kernel/time.o] Error 1 > > $ gcc --version > gcc (Debian 4.4.4-1) 4.4.4 Ping :-) Do that mean that 4.4.4 doesn't understand your new constraints or are we doing something incorrect ? Cheers, Ben.