login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
28
Re: use of volatile in iounmap()?
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Al Viro <viro@...>
To: Sam Ravnborg <sam@...>
Cc: LKML <linux-kernel@...>, Ingo Molnar <mingo@...>
Subject:
Re: use of volatile in iounmap()?
Date: Friday, March 28, 2008 - 5:17 pm
On Fri, Mar 28, 2008 at 09:34:28PM +0100, Sam Ravnborg wrote:
quoted text
> 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.
"Passing a pointer to volatile is allowed, along with passing pointers to unqualified". --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
use of volatile in iounmap()?
, Sam Ravnborg
, (Fri Mar 28, 4:34 pm)
Re: use of volatile in iounmap()?
, Al Viro
, (Fri Mar 28, 5:17 pm)
Re: use of volatile in iounmap()?
, H. Peter Anvin
, (Fri Mar 28, 4:51 pm)
Re: use of volatile in iounmap()?
, Sam Ravnborg
, (Fri Mar 28, 5:04 pm)
Re: use of volatile in iounmap()?
, H. Peter Anvin
, (Fri Mar 28, 5:07 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michal Piotrowski
Re: [BUG] fs/xfs/xfs_bmap_btree.c:2312: error: 'b' undeclared (first use in this f...
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Paul Jackson
[PATCH 0/5 v2] x86 boot: various E820 & EFI related fixes - what changed in v2
git
:
openbsd-misc
:
linux-netdev
:
Paweł Staszewski
Re: rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: Data corruption issue with splice() on 2.6.27.10
Colocation donated by:
Who's online
There are currently
2 users
and
862 guests
online.
Online users
zeekec
sandrasands
Syndicate