Skip to content

Commit

Permalink
[PATCH] i386,amd64: ioremap.c __iomem annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Dec 15, 2005
1 parent 8b8a4e3 commit b16b88e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/i386/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/x86_64/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b16b88e

Please sign in to comment.