diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-01-30 07:34:05 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:05 -0500 |
commit | 4b40fcee131847069543cc60a3a79887743c53db (patch) | |
tree | b0839f19fa6f815573f0f6f33b6a59666b2ab3c4 | |
parent | e9332cacd74b25548a517b8dd4fff0216f7907db (diff) |
x86: __iomem annotations
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/mm/ioremap_32.c | 2 | ||||
-rw-r--r-- | arch/x86/mm/ioremap_64.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/mm/ioremap_32.c b/arch/x86/mm/ioremap_32.c index ae7e55c8c647..5273ac4aa96a 100644 --- a/arch/x86/mm/ioremap_32.c +++ b/arch/x86/mm/ioremap_32.c | |||
@@ -81,7 +81,7 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, | |||
81 | * Don't remap the low PCI/ISA area, it's always mapped.. | 81 | * Don't remap the low PCI/ISA area, it's always mapped.. |
82 | */ | 82 | */ |
83 | if (phys_addr >= ISA_START_ADDRESS && last_addr < ISA_END_ADDRESS) | 83 | if (phys_addr >= ISA_START_ADDRESS && last_addr < ISA_END_ADDRESS) |
84 | return (void __iomem *) phys_to_virt(phys_addr); | 84 | return (__force void __iomem *)phys_to_virt(phys_addr); |
85 | 85 | ||
86 | /* | 86 | /* |
87 | * Don't allow anybody to remap normal RAM that we're using.. | 87 | * Don't allow anybody to remap normal RAM that we're using.. |
diff --git a/arch/x86/mm/ioremap_64.c b/arch/x86/mm/ioremap_64.c index bb9246c4a07b..e79d2b353de0 100644 --- a/arch/x86/mm/ioremap_64.c +++ b/arch/x86/mm/ioremap_64.c | |||
@@ -70,7 +70,7 @@ static int ioremap_change_attr(unsigned long phys_addr, unsigned long size, | |||
70 | void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, | 70 | void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, |
71 | unsigned long flags) | 71 | unsigned long flags) |
72 | { | 72 | { |
73 | void *addr; | 73 | void __iomem *addr; |
74 | struct vm_struct *area; | 74 | struct vm_struct *area; |
75 | unsigned long offset, last_addr; | 75 | unsigned long offset, last_addr; |
76 | pgprot_t pgprot; | 76 | pgprot_t pgprot; |
@@ -101,7 +101,7 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, | |||
101 | if (!area) | 101 | if (!area) |
102 | return NULL; | 102 | return NULL; |
103 | area->phys_addr = phys_addr; | 103 | area->phys_addr = phys_addr; |
104 | addr = area->addr; | 104 | addr = (void __iomem *) area->addr; |
105 | if (ioremap_page_range((unsigned long)addr, (unsigned long)addr + size, | 105 | if (ioremap_page_range((unsigned long)addr, (unsigned long)addr + size, |
106 | phys_addr, pgprot)) { | 106 | phys_addr, pgprot)) { |
107 | remove_vm_area((void *)(PAGE_MASK & (unsigned long) addr)); | 107 | remove_vm_area((void *)(PAGE_MASK & (unsigned long) addr)); |
@@ -111,7 +111,7 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, | |||
111 | vunmap(addr); | 111 | vunmap(addr); |
112 | return NULL; | 112 | return NULL; |
113 | } | 113 | } |
114 | return (__force void __iomem *) (offset + (char *)addr); | 114 | return (void __iomem *) (offset + (char __iomem *)addr); |
115 | } | 115 | } |
116 | EXPORT_SYMBOL(__ioremap); | 116 | EXPORT_SYMBOL(__ioremap); |
117 | 117 | ||
@@ -152,7 +152,7 @@ void iounmap(volatile void __iomem *addr) | |||
152 | { | 152 | { |
153 | struct vm_struct *p, *o; | 153 | struct vm_struct *p, *o; |
154 | 154 | ||
155 | if (addr <= high_memory) | 155 | if ((void __force *)addr <= high_memory) |
156 | return; | 156 | return; |
157 | if (addr >= phys_to_virt(ISA_START_ADDRESS) && | 157 | if (addr >= phys_to_virt(ISA_START_ADDRESS) && |
158 | addr < phys_to_virt(ISA_END_ADDRESS)) | 158 | addr < phys_to_virt(ISA_END_ADDRESS)) |