Re: [RFC/PATCH] doc: volatile considered evil

Jeff Garzik
2007-05-08T21:17:14Z

Jeremy Fitzhardinge wrote:
> No, David means that "asm volatile (...)" is meaningful and OK to use.

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.

Jeff