Skip to contentSkip to conversation

i386,amd64: ioremap.c __iomem annotations

PATCH New Al Viro 1 participant 1 message Dec 15, 2005

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 i386,amd64: ioremap.c __iomem annotations

---

 arch/i386/mm/ioremap.c   |    2 +-
 arch/x86_64/mm/ioremap.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

b1d0c1d84b2650707044dcc1136985f501f72c20

arch/i386/mm/ioremap.c +1 -1
index 8498b5a..247fde7 100644
@@ -245,7 +245,7 @@ void iounmap(volatile void __iomem *addr
 			addr < phys_to_virt(ISA_END_ADDRESS))
 		return;
 
-	addr = (volatile void *)(PAGE_MASK & (unsigned long __force)addr);
+	addr = (volatile void __iomem *)(PAGE_MASK & (unsigned long __force)addr);
 
 	/* Use the vm area unlocked, assuming the caller
 	   ensures there isn't another iounmap for the same address
arch/x86_64/mm/ioremap.c +1 -1
index 0d260e4..ae20706 100644
@@ -263,7 +263,7 @@ void iounmap(volatile void __iomem *addr
 		addr < phys_to_virt(ISA_END_ADDRESS))
 		return;
 
-	addr = (volatile void *)(PAGE_MASK & (unsigned long __force)addr);
+	addr = (volatile void __iomem *)(PAGE_MASK & (unsigned long __force)addr);
 	/* Use the vm area unlocked, assuming the caller
 	   ensures there isn't another iounmap for the same address
 	   in parallel. Reuse of the virtual address is prevented by
Signature · 1 line
0.99.9.GIT