From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750710AbWGFSPz (ORCPT ); Thu, 6 Jul 2006 14:15:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750735AbWGFSPy (ORCPT ); Thu, 6 Jul 2006 14:15:54 -0400 Received: from rtr.ca ([64.26.128.89]:29390 "EHLO mail.rtr.ca") by vger.kernel.org with ESMTP id S1750710AbWGFSPy (ORCPT ); Thu, 6 Jul 2006 14:15:54 -0400 Message-ID: <44AD5357.4000100@rtr.ca> Date: Thu, 06 Jul 2006 14:15:51 -0400 From: Mark Lord User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Arjan van de Ven Cc: "linux-os (Dick Johnson)" , Ingo Molnar , Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [patch] spinlocks: remove 'volatile' References: <20060705114630.GA3134@elte.hu> <20060705101059.66a762bf.akpm@osdl.org> <20060705193551.GA13070@elte.hu> <20060705131824.52fa20ec.akpm@osdl.org> <20060705204727.GA16615@elte.hu> <20060705214502.GA27597@elte.hu> <20060706081639.GA24179@elte.hu> <1152187268.3084.29.camel@laptopd505.fenrus.org> In-Reply-To: <1152187268.3084.29.camel@laptopd505.fenrus.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Arjan van de Ven wrote: > > this is not really what the C standard says. ..and now half of LKML scurries to find a copy of the ANSI C specs.. I'm still browsing a copy here, but so far have only really found this: A volatile declaration may be used to describe an object corresponding to a memory-mapped input/output port or an object accessed by an aysnchronously interrupting function. Actions on objects so declared shall not be "optimized out" by an implementation or reordered except as permitted by the rules for evaluating expressions. Still lots of document left to go through, so I suppose it might contradict itself later on. And of course this is only a language spec, not Real Life (tm). Cheers