public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* use of volatile in iounmap()?
@ 2008-03-28 20:34 Sam Ravnborg
  2008-03-28 20:51 ` H. Peter Anvin
  2008-03-28 21:17 ` Al Viro
  0 siblings, 2 replies; 5+ messages in thread
From: Sam Ravnborg @ 2008-03-28 20:34 UTC (permalink / raw)
  To: LKML; +Cc: Ingo Molnar

While reviewing some CAN driver I stumbled on iounmap
which has following prototype on x86:

extern void iounmap(volatile void __iomem *addr);

I argued that the driver should not use volatile
but then I cannot explain why the argument to
iounmap takes a volatile.

The same goes for many other functions in
the io*.h headers.

Grepping the other archs they mostly follow
same pattern.

Can anyone explain the rational for volatile in this case.

Thanks,
	Sam

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-28 21:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 20:34 use of volatile in iounmap()? Sam Ravnborg
2008-03-28 20:51 ` H. Peter Anvin
2008-03-28 21:04   ` Sam Ravnborg
2008-03-28 21:07     ` H. Peter Anvin
2008-03-28 21:17 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox