lkml.org 
[lkml]   [2007]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC/PATCH] doc: volatile considered evil
Jeff Garzik wrote:
> Jeremy Fitzhardinge wrote:
>> No, David means that "asm volatile (...)" is meaningful and OK to use.

I thought it was OK in readl(), writel(), etc... (and in asm),
but that's it. (and jiffies)

> In a driver? Highly unlikey it is OK. In a filesystem? Even more
> unlikely it is OK to use.
>
> The set of circumstances where 'volatile' is acceptable is very limited.
>
> You will see it used properly in the definitions of writel(), for
> example. But most drivers using 'volatile' are likely bugs.


--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-05-08 23:27    [W:0.070 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site