From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Schwidefsky Subject: Re: [PATCH] make atomic_t volatile on all architectures Date: Sun, 12 Aug 2007 11:48:18 +0200 Message-ID: <1186912098.3852.11.camel@localhost> References: <20070808230733.GA17270@shell.boston.redhat.com> <46BAC2BE.1090106@redhat.com> <46BB508B.7050601@redhat.com> <1186683646.9669.20.camel@localhost> Reply-To: schwidefsky@de.ibm.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Segher Boessenkool , wjiang@resilience.com, wensong@linux-vs.org, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, ak@suse.de, cfriesen@nortel.com, netdev@vger.kernel.org, horms@verge.net.au, akpm@linux-foundation.org, Chuck Ebbert , davem@davemloft.net, zlynx@acm.org, Chris Snook To: Linus Torvalds Return-path: Received: from mtagate3.de.ibm.com ([195.212.29.152]:5568 "EHLO mtagate3.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932397AbXHLJop (ORCPT ); Sun, 12 Aug 2007 05:44:45 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Sat, 2007-08-11 at 23:09 -0700, Linus Torvalds wrote: > Segher, how about you just accept that Linux uses gcc as per reality, and > that sometimes the reality is different from your expectations? > > "+m" works. We use it. It's better than the alternatives. Pointing to > stale documentation doesn't change anything. Well, perhaps on i386. I've seen some older versions of the s390 gcc die with an ICE because I have used "+m" in some kernel inline assembly. I'm happy to hear that this issue is fixed in recent gcc. Now I'll have to find out if this is already true with gcc 3.x. The duplication "=m" and "m" with the same constraint is rather annoying. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.