diff options
Diffstat (limited to 'arch/powerpc/mm/pgtable_64.c')
-rw-r--r-- | arch/powerpc/mm/pgtable_64.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/powerpc/mm/pgtable_64.c b/arch/powerpc/mm/pgtable_64.c index e9b21846ccbd..16e4ee1c2318 100644 --- a/arch/powerpc/mm/pgtable_64.c +++ b/arch/powerpc/mm/pgtable_64.c | |||
@@ -113,7 +113,7 @@ static int map_io_page(unsigned long ea, unsigned long pa, int flags) | |||
113 | } | 113 | } |
114 | 114 | ||
115 | 115 | ||
116 | static void __iomem * __ioremap_com(unsigned long addr, unsigned long pa, | 116 | static void __iomem * __ioremap_com(phys_addr_t addr, unsigned long pa, |
117 | unsigned long ea, unsigned long size, | 117 | unsigned long ea, unsigned long size, |
118 | unsigned long flags) | 118 | unsigned long flags) |
119 | { | 119 | { |
@@ -129,7 +129,7 @@ static void __iomem * __ioremap_com(unsigned long addr, unsigned long pa, | |||
129 | return (void __iomem *) (ea + (addr & ~PAGE_MASK)); | 129 | return (void __iomem *) (ea + (addr & ~PAGE_MASK)); |
130 | } | 130 | } |
131 | 131 | ||
132 | void __iomem * __ioremap(unsigned long addr, unsigned long size, | 132 | void __iomem * __ioremap(phys_addr_t addr, unsigned long size, |
133 | unsigned long flags) | 133 | unsigned long flags) |
134 | { | 134 | { |
135 | unsigned long pa, ea; | 135 | unsigned long pa, ea; |
@@ -169,7 +169,7 @@ void __iomem * __ioremap(unsigned long addr, unsigned long size, | |||
169 | } | 169 | } |
170 | 170 | ||
171 | 171 | ||
172 | void __iomem * ioremap(unsigned long addr, unsigned long size) | 172 | void __iomem * ioremap(phys_addr_t addr, unsigned long size) |
173 | { | 173 | { |
174 | unsigned long flags = _PAGE_NO_CACHE | _PAGE_GUARDED; | 174 | unsigned long flags = _PAGE_NO_CACHE | _PAGE_GUARDED; |
175 | 175 | ||
@@ -178,7 +178,7 @@ void __iomem * ioremap(unsigned long addr, unsigned long size) | |||
178 | return __ioremap(addr, size, flags); | 178 | return __ioremap(addr, size, flags); |
179 | } | 179 | } |
180 | 180 | ||
181 | void __iomem * ioremap_flags(unsigned long addr, unsigned long size, | 181 | void __iomem * ioremap_flags(phys_addr_t addr, unsigned long size, |
182 | unsigned long flags) | 182 | unsigned long flags) |
183 | { | 183 | { |
184 | if (ppc_md.ioremap) | 184 | if (ppc_md.ioremap) |
@@ -189,7 +189,7 @@ void __iomem * ioremap_flags(unsigned long addr, unsigned long size, | |||
189 | 189 | ||
190 | #define IS_PAGE_ALIGNED(_val) ((_val) == ((_val) & PAGE_MASK)) | 190 | #define IS_PAGE_ALIGNED(_val) ((_val) == ((_val) & PAGE_MASK)) |
191 | 191 | ||
192 | int __ioremap_explicit(unsigned long pa, unsigned long ea, | 192 | int __ioremap_explicit(phys_addr_t pa, unsigned long ea, |
193 | unsigned long size, unsigned long flags) | 193 | unsigned long size, unsigned long flags) |
194 | { | 194 | { |
195 | struct vm_struct *area; | 195 | struct vm_struct *area; |
@@ -244,7 +244,7 @@ int __ioremap_explicit(unsigned long pa, unsigned long ea, | |||
244 | * | 244 | * |
245 | * XXX what about calls before mem_init_done (ie python_countermeasures()) | 245 | * XXX what about calls before mem_init_done (ie python_countermeasures()) |
246 | */ | 246 | */ |
247 | void __iounmap(void __iomem *token) | 247 | void __iounmap(volatile void __iomem *token) |
248 | { | 248 | { |
249 | void *addr; | 249 | void *addr; |
250 | 250 | ||
@@ -256,7 +256,7 @@ void __iounmap(void __iomem *token) | |||
256 | im_free(addr); | 256 | im_free(addr); |
257 | } | 257 | } |
258 | 258 | ||
259 | void iounmap(void __iomem *token) | 259 | void iounmap(volatile void __iomem *token) |
260 | { | 260 | { |
261 | if (ppc_md.iounmap) | 261 | if (ppc_md.iounmap) |
262 | ppc_md.iounmap(token); | 262 | ppc_md.iounmap(token); |
@@ -282,7 +282,7 @@ static int iounmap_subset_regions(unsigned long addr, unsigned long size) | |||
282 | return 0; | 282 | return 0; |
283 | } | 283 | } |
284 | 284 | ||
285 | int __iounmap_explicit(void __iomem *start, unsigned long size) | 285 | int __iounmap_explicit(volatile void __iomem *start, unsigned long size) |
286 | { | 286 | { |
287 | struct vm_struct *area; | 287 | struct vm_struct *area; |
288 | unsigned long addr; | 288 | unsigned long addr; |