From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp2.linux-foundation.org (smtp2.linux-foundation.org [207.189.120.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smtp.linux-foundation.org", Issuer "CA Cert Signing Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 9D361DDEBC for ; Thu, 23 Aug 2007 05:48:03 +1000 (EST) Date: Wed, 22 Aug 2007 12:47:43 -0700 From: Andrew Morton To: Mariusz Kozlowski Subject: Re: 2.6.23-rc3-mm1: kgdb build failure on powerpc Message-Id: <20070822124743.fc316963.akpm@linux-foundation.org> In-Reply-To: <200708222104.29432.m.kozlowski@tuxland.pl> References: <20070822020648.5ea3a612.akpm@linux-foundation.org> <200708222104.29432.m.kozlowski@tuxland.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: kgdb-bugreport@lists.sourceforge.net, amitkale@linsyssoft.com, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Paul Mackerras , jason.wessel@windriver.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 22 Aug 2007 21:04:28 +0200 Mariusz Kozlowski wrote: > Hello, > > Got that on imac g3. > > CC kernel/kgdb.o > kernel/kgdb.c: In function 'kgdb_handle_exception': > kernel/kgdb.c:940: error: invalid lvalue in unary '&' > kernel/kgdb.c:940: warning: type defaults to 'int' in declaration of '_o_' > kernel/kgdb.c:940: error: invalid lvalue in unary '&' > kernel/kgdb.c:940: warning: type defaults to 'int' in declaration of '_n_' > kernel/kgdb.c:940: error: invalid lvalue in unary '&' > kernel/kgdb.c:940: error: invalid lvalue in unary '&' > kernel/kgdb.c:940: error: invalid lvalue in unary '&' > kernel/kgdb.c:940: warning: type defaults to 'int' in declaration of 'type name' > make[1]: *** [kernel/kgdb.o] Blad 1 > make: *** [kernel] Blad 2 > I'm not surprised. while (cmpxchg(&atomic_read(&debugger_active), 0, (procid + 1)) != 0) { a) cmpxchg isn't available on all architectures b) we can't just go and take the address of atomic_read()'s return value! c) that's pretty ugly-looking stuff anyway.