Commit 91f725b8 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] ppc io.h annotations

Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 625b0bf3
...@@ -153,19 +153,19 @@ void pte_free(struct page *ptepage) ...@@ -153,19 +153,19 @@ void pte_free(struct page *ptepage)
} }
#ifndef CONFIG_44x #ifndef CONFIG_44x
void * void __iomem *
ioremap(phys_addr_t addr, unsigned long size) ioremap(phys_addr_t addr, unsigned long size)
{ {
return __ioremap(addr, size, _PAGE_NO_CACHE); return __ioremap(addr, size, _PAGE_NO_CACHE);
} }
#else /* CONFIG_44x */ #else /* CONFIG_44x */
void * void __iomem *
ioremap64(unsigned long long addr, unsigned long size) ioremap64(unsigned long long addr, unsigned long size)
{ {
return __ioremap(addr, size, _PAGE_NO_CACHE); return __ioremap(addr, size, _PAGE_NO_CACHE);
} }
void * void __iomem *
ioremap(phys_addr_t addr, unsigned long size) ioremap(phys_addr_t addr, unsigned long size)
{ {
phys_addr_t addr64 = fixup_bigphys_addr(addr, size); phys_addr_t addr64 = fixup_bigphys_addr(addr, size);
...@@ -174,7 +174,7 @@ ioremap(phys_addr_t addr, unsigned long size) ...@@ -174,7 +174,7 @@ ioremap(phys_addr_t addr, unsigned long size)
} }
#endif /* CONFIG_44x */ #endif /* CONFIG_44x */
void * void __iomem *
__ioremap(phys_addr_t addr, unsigned long size, unsigned long flags) __ioremap(phys_addr_t addr, unsigned long size, unsigned long flags)
{ {
unsigned long v, i; unsigned long v, i;
...@@ -257,10 +257,10 @@ __ioremap(phys_addr_t addr, unsigned long size, unsigned long flags) ...@@ -257,10 +257,10 @@ __ioremap(phys_addr_t addr, unsigned long size, unsigned long flags)
} }
out: out:
return (void *) (v + ((unsigned long)addr & ~PAGE_MASK)); return (void __iomem *) (v + ((unsigned long)addr & ~PAGE_MASK));
} }
void iounmap(void *addr) void iounmap(volatile void __iomem *addr)
{ {
/* /*
* If mapped by BATs then there is nothing to do. * If mapped by BATs then there is nothing to do.
......
This diff is collapsed.
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