aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-05-11 12:13:10 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-29 04:46:35 -0400
commit40d158e61840fbbe23be3f37302a3ca237c15491 (patch)
tree0421101a49c3a8e639437a6fb8a162b2bcc077ea /arch
parent605c912bb843c024b1ed173dc427cd5c08e5d54d (diff)
consolidate io_remap_pfn_range definitions
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/alpha/include/asm/pgtable.h3
-rw-r--r--arch/arc/include/asm/pgtable.h3
-rw-r--r--arch/arm/include/asm/pgtable-nommu.h2
-rw-r--r--arch/arm/include/asm/pgtable.h7
-rw-r--r--arch/arm64/include/asm/pgtable.h7
-rw-r--r--arch/avr32/include/asm/pgtable.h3
-rw-r--r--arch/blackfin/include/asm/pgtable.h1
-rw-r--r--arch/c6x/include/asm/pgtable.h1
-rw-r--r--arch/cris/include/asm/pgtable.h3
-rw-r--r--arch/frv/include/asm/pgtable.h3
-rw-r--r--arch/h8300/include/asm/pgtable.h3
-rw-r--r--arch/hexagon/include/asm/pgtable.h4
-rw-r--r--arch/ia64/include/asm/pgtable.h3
-rw-r--r--arch/m32r/include/asm/pgtable.h3
-rw-r--r--arch/m68k/include/asm/pgtable_mm.h3
-rw-r--r--arch/m68k/include/asm/pgtable_no.h3
-rw-r--r--arch/metag/include/asm/pgtable.h3
-rw-r--r--arch/microblaze/include/asm/pgtable.h3
-rw-r--r--arch/mips/include/asm/pgtable.h4
-rw-r--r--arch/mn10300/include/asm/pgtable.h3
-rw-r--r--arch/openrisc/include/asm/pgtable.h3
-rw-r--r--arch/parisc/include/asm/pgtable.h3
-rw-r--r--arch/powerpc/include/asm/pgtable.h3
-rw-r--r--arch/s390/include/asm/pgtable.h3
-rw-r--r--arch/score/include/asm/pgtable.h3
-rw-r--r--arch/sh/include/asm/pgtable.h3
-rw-r--r--arch/sparc/include/asm/pgtable_32.h1
-rw-r--r--arch/sparc/include/asm/pgtable_64.h1
-rw-r--r--arch/tile/include/asm/pgtable.h3
-rw-r--r--arch/um/include/asm/pgtable.h2
-rw-r--r--arch/unicore32/include/asm/pgtable.h7
-rw-r--r--arch/x86/include/asm/pgtable.h3
-rw-r--r--arch/xtensa/include/asm/pgtable.h8
33 files changed, 3 insertions, 105 deletions
diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/include/asm/pgtable.h
index 81a4342d5a3f..d8f9b7e89234 100644
--- a/arch/alpha/include/asm/pgtable.h
+++ b/arch/alpha/include/asm/pgtable.h
@@ -354,9 +354,6 @@ extern inline pte_t mk_swap_pte(unsigned long type, unsigned long offset)
354#define kern_addr_valid(addr) (1) 354#define kern_addr_valid(addr) (1)
355#endif 355#endif
356 356
357#define io_remap_pfn_range(vma, start, pfn, size, prot) \
358 remap_pfn_range(vma, start, pfn, size, prot)
359
360#define pte_ERROR(e) \ 357#define pte_ERROR(e) \
361 printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) 358 printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e))
362#define pmd_ERROR(e) \ 359#define pmd_ERROR(e) \
diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h
index 95b1522212a7..c110ac87d22b 100644
--- a/arch/arc/include/asm/pgtable.h
+++ b/arch/arc/include/asm/pgtable.h
@@ -394,9 +394,6 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
394 * remap a physical page `pfn' of size `size' with page protection `prot' 394 * remap a physical page `pfn' of size `size' with page protection `prot'
395 * into virtual address `from' 395 * into virtual address `from'
396 */ 396 */
397#define io_remap_pfn_range(vma, from, pfn, size, prot) \
398 remap_pfn_range(vma, from, pfn, size, prot)
399
400#include <asm-generic/pgtable.h> 397#include <asm-generic/pgtable.h>
401 398
402/* to cope with aliasing VIPT cache */ 399/* to cope with aliasing VIPT cache */
diff --git a/arch/arm/include/asm/pgtable-nommu.h b/arch/arm/include/asm/pgtable-nommu.h
index 7ec60d6075bf..0642228ff785 100644
--- a/arch/arm/include/asm/pgtable-nommu.h
+++ b/arch/arm/include/asm/pgtable-nommu.h
@@ -79,8 +79,6 @@ extern unsigned int kobjsize(const void *objp);
79 * No page table caches to initialise. 79 * No page table caches to initialise.
80 */ 80 */
81#define pgtable_cache_init() do { } while (0) 81#define pgtable_cache_init() do { } while (0)
82#define io_remap_pfn_range remap_pfn_range
83
84 82
85/* 83/*
86 * All 32bit addresses are effectively valid for vmalloc... 84 * All 32bit addresses are effectively valid for vmalloc...
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index 9bcd262a9008..229e0dde9c71 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -318,13 +318,6 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
318#define HAVE_ARCH_UNMAPPED_AREA 318#define HAVE_ARCH_UNMAPPED_AREA
319#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN 319#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
320 320
321/*
322 * remap a physical page `pfn' of size `size' with page protection `prot'
323 * into virtual address `from'
324 */
325#define io_remap_pfn_range(vma,from,pfn,size,prot) \
326 remap_pfn_range(vma, from, pfn, size, prot)
327
328#define pgtable_cache_init() do { } while (0) 321#define pgtable_cache_init() do { } while (0)
329 322
330#endif /* !__ASSEMBLY__ */ 323#endif /* !__ASSEMBLY__ */
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index e333a243bfcc..3a768e96cf0e 100644
--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -320,13 +320,6 @@ extern int kern_addr_valid(unsigned long addr);
320 320
321#include <asm-generic/pgtable.h> 321#include <asm-generic/pgtable.h>
322 322
323/*
324 * remap a physical page `pfn' of size `size' with page protection `prot'
325 * into virtual address `from'
326 */
327#define io_remap_pfn_range(vma,from,pfn,size,prot) \
328 remap_pfn_range(vma, from, pfn, size, prot)
329
330#define pgtable_cache_init() do { } while (0) 323#define pgtable_cache_init() do { } while (0)
331 324
332#endif /* !__ASSEMBLY__ */ 325#endif /* !__ASSEMBLY__ */
diff --git a/arch/avr32/include/asm/pgtable.h b/arch/avr32/include/asm/pgtable.h
index 6fbfea61f7bb..4beff97e2033 100644
--- a/arch/avr32/include/asm/pgtable.h
+++ b/arch/avr32/include/asm/pgtable.h
@@ -362,9 +362,6 @@ typedef pte_t *pte_addr_t;
362 362
363#define kern_addr_valid(addr) (1) 363#define kern_addr_valid(addr) (1)
364 364
365#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
366 remap_pfn_range(vma, vaddr, pfn, size, prot)
367
368/* No page table caches to initialize (?) */ 365/* No page table caches to initialize (?) */
369#define pgtable_cache_init() do { } while(0) 366#define pgtable_cache_init() do { } while(0)
370 367
diff --git a/arch/blackfin/include/asm/pgtable.h b/arch/blackfin/include/asm/pgtable.h
index b8663921d3c1..0b049019eba7 100644
--- a/arch/blackfin/include/asm/pgtable.h
+++ b/arch/blackfin/include/asm/pgtable.h
@@ -88,7 +88,6 @@ extern char empty_zero_page[];
88 * No page table caches to initialise. 88 * No page table caches to initialise.
89 */ 89 */
90#define pgtable_cache_init() do { } while (0) 90#define pgtable_cache_init() do { } while (0)
91#define io_remap_pfn_range remap_pfn_range
92 91
93/* 92/*
94 * All 32bit addresses are effectively valid for vmalloc... 93 * All 32bit addresses are effectively valid for vmalloc...
diff --git a/arch/c6x/include/asm/pgtable.h b/arch/c6x/include/asm/pgtable.h
index 38a4312eb2cb..c0eed5b18860 100644
--- a/arch/c6x/include/asm/pgtable.h
+++ b/arch/c6x/include/asm/pgtable.h
@@ -71,7 +71,6 @@ extern unsigned long empty_zero_page;
71 * No page table caches to initialise 71 * No page table caches to initialise
72 */ 72 */
73#define pgtable_cache_init() do { } while (0) 73#define pgtable_cache_init() do { } while (0)
74#define io_remap_pfn_range remap_pfn_range
75 74
76#include <asm-generic/pgtable.h> 75#include <asm-generic/pgtable.h>
77 76
diff --git a/arch/cris/include/asm/pgtable.h b/arch/cris/include/asm/pgtable.h
index 7df430138355..8b8c86793225 100644
--- a/arch/cris/include/asm/pgtable.h
+++ b/arch/cris/include/asm/pgtable.h
@@ -258,9 +258,6 @@ static inline pgd_t * pgd_offset(const struct mm_struct *mm, unsigned long addre
258#define pgd_ERROR(e) \ 258#define pgd_ERROR(e) \
259 printk("%s:%d: bad pgd %p(%08lx).\n", __FILE__, __LINE__, &(e), pgd_val(e)) 259 printk("%s:%d: bad pgd %p(%08lx).\n", __FILE__, __LINE__, &(e), pgd_val(e))
260 260
261#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
262 remap_pfn_range(vma, vaddr, pfn, size, prot)
263
264 261
265extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */ 262extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */
266 263
diff --git a/arch/frv/include/asm/pgtable.h b/arch/frv/include/asm/pgtable.h
index 6bc241e4b4f8..eb0110acd19b 100644
--- a/arch/frv/include/asm/pgtable.h
+++ b/arch/frv/include/asm/pgtable.h
@@ -488,9 +488,6 @@ static inline int pte_file(pte_t pte)
488#define PageSkip(page) (0) 488#define PageSkip(page) (0)
489#define kern_addr_valid(addr) (1) 489#define kern_addr_valid(addr) (1)
490 490
491#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
492 remap_pfn_range(vma, vaddr, pfn, size, prot)
493
494#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG 491#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG
495#define __HAVE_ARCH_PTEP_GET_AND_CLEAR 492#define __HAVE_ARCH_PTEP_GET_AND_CLEAR
496#define __HAVE_ARCH_PTEP_SET_WRPROTECT 493#define __HAVE_ARCH_PTEP_SET_WRPROTECT
diff --git a/arch/h8300/include/asm/pgtable.h b/arch/h8300/include/asm/pgtable.h
index 62ef17676b40..7ca20f894dd7 100644
--- a/arch/h8300/include/asm/pgtable.h
+++ b/arch/h8300/include/asm/pgtable.h
@@ -52,9 +52,6 @@ extern int is_in_rom(unsigned long);
52 */ 52 */
53#define pgtable_cache_init() do { } while (0) 53#define pgtable_cache_init() do { } while (0)
54 54
55#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
56 remap_pfn_range(vma, vaddr, pfn, size, prot)
57
58/* 55/*
59 * All 32bit addresses are effectively valid for vmalloc... 56 * All 32bit addresses are effectively valid for vmalloc...
60 * Sort of meaningless for non-VM targets. 57 * Sort of meaningless for non-VM targets.
diff --git a/arch/hexagon/include/asm/pgtable.h b/arch/hexagon/include/asm/pgtable.h
index 20d55f69fe55..d8bd54fa431e 100644
--- a/arch/hexagon/include/asm/pgtable.h
+++ b/arch/hexagon/include/asm/pgtable.h
@@ -452,10 +452,6 @@ static inline int pte_exec(pte_t pte)
452 452
453#define __pte_offset(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) 453#define __pte_offset(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
454 454
455/* Nothing special about IO remapping at this point */
456#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
457 remap_pfn_range(vma, vaddr, pfn, size, prot)
458
459/* I think this is in case we have page table caches; needed by init/main.c */ 455/* I think this is in case we have page table caches; needed by init/main.c */
460#define pgtable_cache_init() do { } while (0) 456#define pgtable_cache_init() do { } while (0)
461 457
diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h
index 815810cbbedc..7935115398a6 100644
--- a/arch/ia64/include/asm/pgtable.h
+++ b/arch/ia64/include/asm/pgtable.h
@@ -493,9 +493,6 @@ extern void paging_init (void);
493#define pte_to_pgoff(pte) ((pte_val(pte) << 1) >> 3) 493#define pte_to_pgoff(pte) ((pte_val(pte) << 1) >> 3)
494#define pgoff_to_pte(off) ((pte_t) { ((off) << 2) | _PAGE_FILE }) 494#define pgoff_to_pte(off) ((pte_t) { ((off) << 2) | _PAGE_FILE })
495 495
496#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
497 remap_pfn_range(vma, vaddr, pfn, size, prot)
498
499/* 496/*
500 * ZERO_PAGE is a global shared page that is always zero: used 497 * ZERO_PAGE is a global shared page that is always zero: used
501 * for zero-mapped memory areas etc.. 498 * for zero-mapped memory areas etc..
diff --git a/arch/m32r/include/asm/pgtable.h b/arch/m32r/include/asm/pgtable.h
index 8a28cfea2729..103ce6710f07 100644
--- a/arch/m32r/include/asm/pgtable.h
+++ b/arch/m32r/include/asm/pgtable.h
@@ -347,9 +347,6 @@ static inline void pmd_set(pmd_t * pmdp, pte_t * ptep)
347/* Needs to be defined here and not in linux/mm.h, as it is arch dependent */ 347/* Needs to be defined here and not in linux/mm.h, as it is arch dependent */
348#define kern_addr_valid(addr) (1) 348#define kern_addr_valid(addr) (1)
349 349
350#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
351 remap_pfn_range(vma, vaddr, pfn, size, prot)
352
353#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG 350#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG
354#define __HAVE_ARCH_PTEP_GET_AND_CLEAR 351#define __HAVE_ARCH_PTEP_GET_AND_CLEAR
355#define __HAVE_ARCH_PTEP_SET_WRPROTECT 352#define __HAVE_ARCH_PTEP_SET_WRPROTECT
diff --git a/arch/m68k/include/asm/pgtable_mm.h b/arch/m68k/include/asm/pgtable_mm.h
index dc35e0e106e4..9f5abbda1ea7 100644
--- a/arch/m68k/include/asm/pgtable_mm.h
+++ b/arch/m68k/include/asm/pgtable_mm.h
@@ -135,9 +135,6 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
135 135
136#define kern_addr_valid(addr) (1) 136#define kern_addr_valid(addr) (1)
137 137
138#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
139 remap_pfn_range(vma, vaddr, pfn, size, prot)
140
141/* MMU-specific headers */ 138/* MMU-specific headers */
142 139
143#ifdef CONFIG_SUN3 140#ifdef CONFIG_SUN3
diff --git a/arch/m68k/include/asm/pgtable_no.h b/arch/m68k/include/asm/pgtable_no.h
index 037028f4ab70..c527fc2ecf82 100644
--- a/arch/m68k/include/asm/pgtable_no.h
+++ b/arch/m68k/include/asm/pgtable_no.h
@@ -55,9 +55,6 @@ extern unsigned int kobjsize(const void *objp);
55 */ 55 */
56#define pgtable_cache_init() do { } while (0) 56#define pgtable_cache_init() do { } while (0)
57 57
58#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
59 remap_pfn_range(vma, vaddr, pfn, size, prot)
60
61/* 58/*
62 * All 32bit addresses are effectively valid for vmalloc... 59 * All 32bit addresses are effectively valid for vmalloc...
63 * Sort of meaningless for non-VM targets. 60 * Sort of meaningless for non-VM targets.
diff --git a/arch/metag/include/asm/pgtable.h b/arch/metag/include/asm/pgtable.h
index 1cd13d595198..0d9dc5487296 100644
--- a/arch/metag/include/asm/pgtable.h
+++ b/arch/metag/include/asm/pgtable.h
@@ -333,9 +333,6 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
333 333
334#define kern_addr_valid(addr) (1) 334#define kern_addr_valid(addr) (1)
335 335
336#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
337 remap_pfn_range(vma, vaddr, pfn, size, prot)
338
339/* 336/*
340 * No page table caches to initialise 337 * No page table caches to initialise
341 */ 338 */
diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h
index a7311cd9dee0..95cef0b5f836 100644
--- a/arch/microblaze/include/asm/pgtable.h
+++ b/arch/microblaze/include/asm/pgtable.h
@@ -13,9 +13,6 @@
13 13
14#include <asm/setup.h> 14#include <asm/setup.h>
15 15
16#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
17 remap_pfn_range(vma, vaddr, pfn, size, prot)
18
19#ifndef __ASSEMBLY__ 16#ifndef __ASSEMBLY__
20extern int mem_init_done; 17extern int mem_init_done;
21#endif 18#endif
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h
index 8b8f6b393363..008324d1c261 100644
--- a/arch/mips/include/asm/pgtable.h
+++ b/arch/mips/include/asm/pgtable.h
@@ -394,9 +394,7 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma,
394 phys_t phys_addr_high = fixup_bigphys_addr(pfn << PAGE_SHIFT, size); 394 phys_t phys_addr_high = fixup_bigphys_addr(pfn << PAGE_SHIFT, size);
395 return remap_pfn_range(vma, vaddr, phys_addr_high >> PAGE_SHIFT, size, prot); 395 return remap_pfn_range(vma, vaddr, phys_addr_high >> PAGE_SHIFT, size, prot);
396} 396}
397#else 397#define io_remap_pfn_range io_remap_pfn_range
398#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
399 remap_pfn_range(vma, vaddr, pfn, size, prot)
400#endif 398#endif
401 399
402#ifdef CONFIG_TRANSPARENT_HUGEPAGE 400#ifdef CONFIG_TRANSPARENT_HUGEPAGE
diff --git a/arch/mn10300/include/asm/pgtable.h b/arch/mn10300/include/asm/pgtable.h
index a1e894b5f65b..2ddaa67e7983 100644
--- a/arch/mn10300/include/asm/pgtable.h
+++ b/arch/mn10300/include/asm/pgtable.h
@@ -486,9 +486,6 @@ extern void update_mmu_cache(struct vm_area_struct *vma,
486 486
487#define kern_addr_valid(addr) (1) 487#define kern_addr_valid(addr) (1)
488 488
489#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
490 remap_pfn_range((vma), (vaddr), (pfn), (size), (prot))
491
492#define MK_IOSPACE_PFN(space, pfn) (pfn) 489#define MK_IOSPACE_PFN(space, pfn) (pfn)
493#define GET_IOSPACE(pfn) 0 490#define GET_IOSPACE(pfn) 0
494#define GET_PFN(pfn) (pfn) 491#define GET_PFN(pfn) (pfn)
diff --git a/arch/openrisc/include/asm/pgtable.h b/arch/openrisc/include/asm/pgtable.h
index 14c900cfd30a..37bf6a3ef8f4 100644
--- a/arch/openrisc/include/asm/pgtable.h
+++ b/arch/openrisc/include/asm/pgtable.h
@@ -446,9 +446,6 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
446 446
447#define kern_addr_valid(addr) (1) 447#define kern_addr_valid(addr) (1)
448 448
449#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
450 remap_pfn_range(vma, vaddr, pfn, size, prot)
451
452#include <asm-generic/pgtable.h> 449#include <asm-generic/pgtable.h>
453 450
454/* 451/*
diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h
index 1e40d7f86be3..34899b5d959a 100644
--- a/arch/parisc/include/asm/pgtable.h
+++ b/arch/parisc/include/asm/pgtable.h
@@ -506,9 +506,6 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,
506#endif 506#endif
507 507
508 508
509#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
510 remap_pfn_range(vma, vaddr, pfn, size, prot)
511
512#define pgprot_noncached(prot) __pgprot(pgprot_val(prot) | _PAGE_NO_CACHE) 509#define pgprot_noncached(prot) __pgprot(pgprot_val(prot) | _PAGE_NO_CACHE)
513 510
514/* We provide our own get_unmapped_area to provide cache coherency */ 511/* We provide our own get_unmapped_area to provide cache coherency */
diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h
index 7aeb9555f6ea..b6293d26bd39 100644
--- a/arch/powerpc/include/asm/pgtable.h
+++ b/arch/powerpc/include/asm/pgtable.h
@@ -198,9 +198,6 @@ extern void paging_init(void);
198 */ 198 */
199#define kern_addr_valid(addr) (1) 199#define kern_addr_valid(addr) (1)
200 200
201#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
202 remap_pfn_range(vma, vaddr, pfn, size, prot)
203
204#include <asm-generic/pgtable.h> 201#include <asm-generic/pgtable.h>
205 202
206 203
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
index e8b6e5b8932c..9aefa3c64eb2 100644
--- a/arch/s390/include/asm/pgtable.h
+++ b/arch/s390/include/asm/pgtable.h
@@ -58,9 +58,6 @@ extern unsigned long zero_page_mask;
58#define __HAVE_COLOR_ZERO_PAGE 58#define __HAVE_COLOR_ZERO_PAGE
59 59
60/* TODO: s390 cannot support io_remap_pfn_range... */ 60/* TODO: s390 cannot support io_remap_pfn_range... */
61#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
62 remap_pfn_range(vma, vaddr, pfn, size, prot)
63
64#endif /* !__ASSEMBLY__ */ 61#endif /* !__ASSEMBLY__ */
65 62
66/* 63/*
diff --git a/arch/score/include/asm/pgtable.h b/arch/score/include/asm/pgtable.h
index 2fd469807683..db96ad9afc03 100644
--- a/arch/score/include/asm/pgtable.h
+++ b/arch/score/include/asm/pgtable.h
@@ -113,9 +113,6 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; }
113#define pte_clear(mm, addr, xp) \ 113#define pte_clear(mm, addr, xp) \
114 do { set_pte_at(mm, addr, xp, __pte(0)); } while (0) 114 do { set_pte_at(mm, addr, xp, __pte(0)); } while (0)
115 115
116#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
117 remap_pfn_range(vma, vaddr, pfn, size, prot)
118
119/* 116/*
120 * The "pgd_xxx()" functions here are trivial for a folded two-level 117 * The "pgd_xxx()" functions here are trivial for a folded two-level
121 * setup: the pgd is never bad, and a pmd always exists (as it's folded 118 * setup: the pgd is never bad, and a pmd always exists (as it's folded
diff --git a/arch/sh/include/asm/pgtable.h b/arch/sh/include/asm/pgtable.h
index 9210e93a92c3..cf434c64408d 100644
--- a/arch/sh/include/asm/pgtable.h
+++ b/arch/sh/include/asm/pgtable.h
@@ -124,9 +124,6 @@ typedef pte_t *pte_addr_t;
124 124
125#define kern_addr_valid(addr) (1) 125#define kern_addr_valid(addr) (1)
126 126
127#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
128 remap_pfn_range(vma, vaddr, pfn, size, prot)
129
130#define pte_pfn(x) ((unsigned long)(((x).pte_low >> PAGE_SHIFT))) 127#define pte_pfn(x) ((unsigned long)(((x).pte_low >> PAGE_SHIFT)))
131 128
132/* 129/*
diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h
index 6fc13483f702..502f632f6cc7 100644
--- a/arch/sparc/include/asm/pgtable_32.h
+++ b/arch/sparc/include/asm/pgtable_32.h
@@ -443,6 +443,7 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma,
443 443
444 return remap_pfn_range(vma, from, phys_base >> PAGE_SHIFT, size, prot); 444 return remap_pfn_range(vma, from, phys_base >> PAGE_SHIFT, size, prot);
445} 445}
446#define io_remap_pfn_range io_remap_pfn_range
446 447
447#define __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS 448#define __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
448#define ptep_set_access_flags(__vma, __address, __ptep, __entry, __dirty) \ 449#define ptep_set_access_flags(__vma, __address, __ptep, __entry, __dirty) \
diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h
index 7619f2f792af..79c214efa3fe 100644
--- a/arch/sparc/include/asm/pgtable_64.h
+++ b/arch/sparc/include/asm/pgtable_64.h
@@ -914,6 +914,7 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma,
914 914
915 return remap_pfn_range(vma, from, phys_base >> PAGE_SHIFT, size, prot); 915 return remap_pfn_range(vma, from, phys_base >> PAGE_SHIFT, size, prot);
916} 916}
917#define io_remap_pfn_range io_remap_pfn_range
917 918
918#include <asm/tlbflush.h> 919#include <asm/tlbflush.h>
919#include <asm-generic/pgtable.h> 920#include <asm-generic/pgtable.h>
diff --git a/arch/tile/include/asm/pgtable.h b/arch/tile/include/asm/pgtable.h
index 73b1a4c9ad03..33587f16c152 100644
--- a/arch/tile/include/asm/pgtable.h
+++ b/arch/tile/include/asm/pgtable.h
@@ -362,9 +362,6 @@ do { \
362#define kern_addr_valid(addr) (1) 362#define kern_addr_valid(addr) (1)
363#endif /* CONFIG_FLATMEM */ 363#endif /* CONFIG_FLATMEM */
364 364
365#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
366 remap_pfn_range(vma, vaddr, pfn, size, prot)
367
368extern void vmalloc_sync_all(void); 365extern void vmalloc_sync_all(void);
369 366
370#endif /* !__ASSEMBLY__ */ 367#endif /* !__ASSEMBLY__ */
diff --git a/arch/um/include/asm/pgtable.h b/arch/um/include/asm/pgtable.h
index ae02909a1875..bf974f712af7 100644
--- a/arch/um/include/asm/pgtable.h
+++ b/arch/um/include/asm/pgtable.h
@@ -69,8 +69,6 @@ extern unsigned long end_iomem;
69#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 69#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED)
70#define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL_EXEC) 70#define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL_EXEC)
71 71
72#define io_remap_pfn_range remap_pfn_range
73
74/* 72/*
75 * The i386 can't do page protection for execute, and considers that the same 73 * The i386 can't do page protection for execute, and considers that the same
76 * are read. 74 * are read.
diff --git a/arch/unicore32/include/asm/pgtable.h b/arch/unicore32/include/asm/pgtable.h
index 68b2f297ac97..233c25880df4 100644
--- a/arch/unicore32/include/asm/pgtable.h
+++ b/arch/unicore32/include/asm/pgtable.h
@@ -303,13 +303,6 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
303 303
304#include <asm-generic/pgtable.h> 304#include <asm-generic/pgtable.h>
305 305
306/*
307 * remap a physical page `pfn' of size `size' with page protection `prot'
308 * into virtual address `from'
309 */
310#define io_remap_pfn_range(vma, from, pfn, size, prot) \
311 remap_pfn_range(vma, from, pfn, size, prot)
312
313#define pgtable_cache_init() do { } while (0) 306#define pgtable_cache_init() do { } while (0)
314 307
315#endif /* !__ASSEMBLY__ */ 308#endif /* !__ASSEMBLY__ */
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index 1e672234c4ff..5b0818bc8963 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -506,9 +506,6 @@ static inline unsigned long pages_to_mb(unsigned long npg)
506 return npg >> (20 - PAGE_SHIFT); 506 return npg >> (20 - PAGE_SHIFT);
507} 507}
508 508
509#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
510 remap_pfn_range(vma, vaddr, pfn, size, prot)
511
512#if PAGETABLE_LEVELS > 2 509#if PAGETABLE_LEVELS > 2
513static inline int pud_none(pud_t pud) 510static inline int pud_none(pud_t pud)
514{ 511{
diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h
index d7546c94da52..8f017eb309bd 100644
--- a/arch/xtensa/include/asm/pgtable.h
+++ b/arch/xtensa/include/asm/pgtable.h
@@ -393,14 +393,6 @@ ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
393extern void update_mmu_cache(struct vm_area_struct * vma, 393extern void update_mmu_cache(struct vm_area_struct * vma,
394 unsigned long address, pte_t *ptep); 394 unsigned long address, pte_t *ptep);
395 395
396/*
397 * remap a physical page `pfn' of size `size' with page protection `prot'
398 * into virtual address `from'
399 */
400
401#define io_remap_pfn_range(vma,from,pfn,size,prot) \
402 remap_pfn_range(vma, from, pfn, size, prot)
403
404typedef pte_t *pte_addr_t; 396typedef pte_t *pte_addr_t;
405 397
406#endif /* !defined (__ASSEMBLY__) */ 398#endif /* !defined (__ASSEMBLY__) */