Commit 1622605c authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] arm: it's OK to pass pointer to volatile as iounmap() argument...

Signed-off-by: default avatarAl Viro <>
Signed-off-by: default avatarLinus Torvalds <>
parent 83250493
......@@ -361,14 +361,14 @@ __ioremap(unsigned long phys_addr, size_t size, unsigned long flags)
void __iounmap(void __iomem *addr)
void __iounmap(volatile void __iomem *addr)
#ifndef CONFIG_SMP
struct vm_struct **p, *tmp;
unsigned int section_mapping = 0;
addr = (void __iomem *)(PAGE_MASK & (unsigned long)addr);
addr = (volatile void __iomem *)(PAGE_MASK & (unsigned long)addr);
#ifndef CONFIG_SMP
......@@ -395,6 +395,6 @@ void __iounmap(void __iomem *addr)
if (!section_mapping)
vunmap((void __force *)addr);
......@@ -63,7 +63,7 @@ extern void __raw_readsl(const void __iomem *addr, void *data, int longlen);
extern void __iomem * __ioremap_pfn(unsigned long, unsigned long, size_t, unsigned long);
extern void __iomem * __ioremap(unsigned long, size_t, unsigned long);
extern void __iounmap(void __iomem *addr);
extern void __iounmap(volatile void __iomem *addr);
* Bad read/write accesses...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment