]> err.no Git - linux-2.6/commitdiff
[PATCH] i386,amd64: ioremap.c __iomem annotations
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 15 Dec 2005 09:17:50 +0000 (09:17 +0000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 15 Dec 2005 18:04:30 +0000 (10:04 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/mm/ioremap.c
arch/x86_64/mm/ioremap.c

index 8498b5ac3955c54939bec5acca0754ba314238c0..247fde76aaeddaf0c81215917a015bda7ea648ae 100644 (file)
@@ -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
index 0d260e4492f7f96775dbbb641478a0a65ca838ba..ae207064201e19697160a332a3399f9a0594b2f8 100644 (file)
@@ -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