diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-05-08 03:30:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:13 -0400 |
commit | 0bb5e19d63cc1b09aed8aef3a20926ac435bb8e7 (patch) | |
tree | c6b2a03259a86ca96d3fac02fc0f2f05220e6682 | |
parent | 53f049fa5f18730b61faaee582ea0e045fd44f49 (diff) |
Clean up mostly unused IOSPACE macros
Most architectures defined three macros, MK_IOSPACE_PFN(), GET_IOSPACE()
and GET_PFN() in pgtable.h. However, the only callers of any of these
macros are in Sparc specific code, either in arch/sparc, arch/sparc64 or
drivers/sbus.
This patch removes the redundant macros from all architectures except
sparc and sparc64.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/asm-alpha/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-arm/pgtable-nommu.h | 4 | ||||
-rw-r--r-- | include/asm-arm/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-arm26/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-avr32/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-frv/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-h8300/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-i386/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-ia64/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-m32r/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-m68k/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-m68knommu/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-mips/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-parisc/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-ppc/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-sh/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-sh64/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-x86_64/pgtable.h | 4 |
18 files changed, 0 insertions, 72 deletions
diff --git a/include/asm-alpha/pgtable.h b/include/asm-alpha/pgtable.h index 49ac9bee7ced..616d20662ff3 100644 --- a/include/asm-alpha/pgtable.h +++ b/include/asm-alpha/pgtable.h | |||
@@ -345,10 +345,6 @@ extern inline pte_t mk_swap_pte(unsigned long type, unsigned long offset) | |||
345 | #define io_remap_pfn_range(vma, start, pfn, size, prot) \ | 345 | #define io_remap_pfn_range(vma, start, pfn, size, prot) \ |
346 | remap_pfn_range(vma, start, pfn, size, prot) | 346 | remap_pfn_range(vma, start, pfn, size, prot) |
347 | 347 | ||
348 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
349 | #define GET_IOSPACE(pfn) 0 | ||
350 | #define GET_PFN(pfn) (pfn) | ||
351 | |||
352 | #define pte_ERROR(e) \ | 348 | #define pte_ERROR(e) \ |
353 | printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) | 349 | printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) |
354 | #define pmd_ERROR(e) \ | 350 | #define pmd_ERROR(e) \ |
diff --git a/include/asm-arm/pgtable-nommu.h b/include/asm-arm/pgtable-nommu.h index 7b1c9acdf79a..0c8be19fd66b 100644 --- a/include/asm-arm/pgtable-nommu.h +++ b/include/asm-arm/pgtable-nommu.h | |||
@@ -83,10 +83,6 @@ extern int is_in_rom(unsigned long); | |||
83 | #define io_remap_page_range remap_page_range | 83 | #define io_remap_page_range remap_page_range |
84 | #define io_remap_pfn_range remap_pfn_range | 84 | #define io_remap_pfn_range remap_pfn_range |
85 | 85 | ||
86 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
87 | #define GET_IOSPACE(pfn) 0 | ||
88 | #define GET_PFN(pfn) (pfn) | ||
89 | |||
90 | 86 | ||
91 | /* | 87 | /* |
92 | * All 32bit addresses are effectively valid for vmalloc... | 88 | * All 32bit addresses are effectively valid for vmalloc... |
diff --git a/include/asm-arm/pgtable.h b/include/asm-arm/pgtable.h index 7b2bafce21a2..21dec9f258d8 100644 --- a/include/asm-arm/pgtable.h +++ b/include/asm-arm/pgtable.h | |||
@@ -395,10 +395,6 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; | |||
395 | #define io_remap_pfn_range(vma,from,pfn,size,prot) \ | 395 | #define io_remap_pfn_range(vma,from,pfn,size,prot) \ |
396 | remap_pfn_range(vma, from, pfn, size, prot) | 396 | remap_pfn_range(vma, from, pfn, size, prot) |
397 | 397 | ||
398 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
399 | #define GET_IOSPACE(pfn) 0 | ||
400 | #define GET_PFN(pfn) (pfn) | ||
401 | |||
402 | #define pgtable_cache_init() do { } while (0) | 398 | #define pgtable_cache_init() do { } while (0) |
403 | 399 | ||
404 | #endif /* !__ASSEMBLY__ */ | 400 | #endif /* !__ASSEMBLY__ */ |
diff --git a/include/asm-arm26/pgtable.h b/include/asm-arm26/pgtable.h index 63a8881fae13..2b20e9f08857 100644 --- a/include/asm-arm26/pgtable.h +++ b/include/asm-arm26/pgtable.h | |||
@@ -297,10 +297,6 @@ static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot) | |||
297 | #define io_remap_pfn_range(vma,from,pfn,size,prot) \ | 297 | #define io_remap_pfn_range(vma,from,pfn,size,prot) \ |
298 | remap_pfn_range(vma, from, pfn, size, prot) | 298 | remap_pfn_range(vma, from, pfn, size, prot) |
299 | 299 | ||
300 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
301 | #define GET_IOSPACE(pfn) 0 | ||
302 | #define GET_PFN(pfn) (pfn) | ||
303 | |||
304 | #endif /* !__ASSEMBLY__ */ | 300 | #endif /* !__ASSEMBLY__ */ |
305 | 301 | ||
306 | #endif /* _ASMARM_PGTABLE_H */ | 302 | #endif /* _ASMARM_PGTABLE_H */ |
diff --git a/include/asm-avr32/pgtable.h b/include/asm-avr32/pgtable.h index 6b8ca9db2bd5..f6cc2b0f75c3 100644 --- a/include/asm-avr32/pgtable.h +++ b/include/asm-avr32/pgtable.h | |||
@@ -394,10 +394,6 @@ typedef pte_t *pte_addr_t; | |||
394 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 394 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
395 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 395 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
396 | 396 | ||
397 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
398 | #define GET_IOSPACE(pfn) 0 | ||
399 | #define GET_PFN(pfn) (pfn) | ||
400 | |||
401 | /* No page table caches to initialize (?) */ | 397 | /* No page table caches to initialize (?) */ |
402 | #define pgtable_cache_init() do { } while(0) | 398 | #define pgtable_cache_init() do { } while(0) |
403 | 399 | ||
diff --git a/include/asm-frv/pgtable.h b/include/asm-frv/pgtable.h index 8a05aa168616..2687c7715120 100644 --- a/include/asm-frv/pgtable.h +++ b/include/asm-frv/pgtable.h | |||
@@ -509,10 +509,6 @@ static inline int pte_file(pte_t pte) | |||
509 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 509 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
510 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 510 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
511 | 511 | ||
512 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
513 | #define GET_IOSPACE(pfn) 0 | ||
514 | #define GET_PFN(pfn) (pfn) | ||
515 | |||
516 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG | 512 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG |
517 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY | 513 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY |
518 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR | 514 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR |
diff --git a/include/asm-h8300/pgtable.h b/include/asm-h8300/pgtable.h index ddd07f485dd8..a09230a08e02 100644 --- a/include/asm-h8300/pgtable.h +++ b/include/asm-h8300/pgtable.h | |||
@@ -55,10 +55,6 @@ extern int is_in_rom(unsigned long); | |||
55 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 55 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
56 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 56 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
57 | 57 | ||
58 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
59 | #define GET_IOSPACE(pfn) 0 | ||
60 | #define GET_PFN(pfn) (pfn) | ||
61 | |||
62 | /* | 58 | /* |
63 | * All 32bit addresses are effectively valid for vmalloc... | 59 | * All 32bit addresses are effectively valid for vmalloc... |
64 | * Sort of meaningless for non-VM targets. | 60 | * Sort of meaningless for non-VM targets. |
diff --git a/include/asm-i386/pgtable.h b/include/asm-i386/pgtable.h index 61fbf8578ff1..edce9d51a676 100644 --- a/include/asm-i386/pgtable.h +++ b/include/asm-i386/pgtable.h | |||
@@ -542,10 +542,6 @@ static inline void paravirt_pagetable_setup_done(pgd_t *base) | |||
542 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 542 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
543 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 543 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
544 | 544 | ||
545 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
546 | #define GET_IOSPACE(pfn) 0 | ||
547 | #define GET_PFN(pfn) (pfn) | ||
548 | |||
549 | #include <asm-generic/pgtable.h> | 545 | #include <asm-generic/pgtable.h> |
550 | 546 | ||
551 | #endif /* _I386_PGTABLE_H */ | 547 | #endif /* _I386_PGTABLE_H */ |
diff --git a/include/asm-ia64/pgtable.h b/include/asm-ia64/pgtable.h index 553182747722..670b706411b8 100644 --- a/include/asm-ia64/pgtable.h +++ b/include/asm-ia64/pgtable.h | |||
@@ -485,10 +485,6 @@ extern void paging_init (void); | |||
485 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 485 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
486 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 486 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
487 | 487 | ||
488 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
489 | #define GET_IOSPACE(pfn) 0 | ||
490 | #define GET_PFN(pfn) (pfn) | ||
491 | |||
492 | /* | 488 | /* |
493 | * ZERO_PAGE is a global shared page that is always zero: used | 489 | * ZERO_PAGE is a global shared page that is always zero: used |
494 | * for zero-mapped memory areas etc.. | 490 | * for zero-mapped memory areas etc.. |
diff --git a/include/asm-m32r/pgtable.h b/include/asm-m32r/pgtable.h index 1c15ba7ce319..8b2a2f17e695 100644 --- a/include/asm-m32r/pgtable.h +++ b/include/asm-m32r/pgtable.h | |||
@@ -381,10 +381,6 @@ static inline void pmd_set(pmd_t * pmdp, pte_t * ptep) | |||
381 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 381 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
382 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 382 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
383 | 383 | ||
384 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
385 | #define GET_IOSPACE(pfn) 0 | ||
386 | #define GET_PFN(pfn) (pfn) | ||
387 | |||
388 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG | 384 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG |
389 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY | 385 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY |
390 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR | 386 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR |
diff --git a/include/asm-m68k/pgtable.h b/include/asm-m68k/pgtable.h index f3aa05377987..555b87a1f7e3 100644 --- a/include/asm-m68k/pgtable.h +++ b/include/asm-m68k/pgtable.h | |||
@@ -143,10 +143,6 @@ static inline void update_mmu_cache(struct vm_area_struct *vma, | |||
143 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 143 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
144 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 144 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
145 | 145 | ||
146 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
147 | #define GET_IOSPACE(pfn) 0 | ||
148 | #define GET_PFN(pfn) (pfn) | ||
149 | |||
150 | /* MMU-specific headers */ | 146 | /* MMU-specific headers */ |
151 | 147 | ||
152 | #ifdef CONFIG_SUN3 | 148 | #ifdef CONFIG_SUN3 |
diff --git a/include/asm-m68knommu/pgtable.h b/include/asm-m68knommu/pgtable.h index 549ad231efad..9dfbbc24aa71 100644 --- a/include/asm-m68knommu/pgtable.h +++ b/include/asm-m68knommu/pgtable.h | |||
@@ -59,10 +59,6 @@ extern int is_in_rom(unsigned long); | |||
59 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 59 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
60 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 60 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
61 | 61 | ||
62 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
63 | #define GET_IOSPACE(pfn) 0 | ||
64 | #define GET_PFN(pfn) (pfn) | ||
65 | |||
66 | /* | 62 | /* |
67 | * All 32bit addresses are effectively valid for vmalloc... | 63 | * All 32bit addresses are effectively valid for vmalloc... |
68 | * Sort of meaningless for non-VM targets. | 64 | * Sort of meaningless for non-VM targets. |
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index 0d3295f57a95..27d77d981937 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h | |||
@@ -387,10 +387,6 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma, | |||
387 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 387 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
388 | #endif | 388 | #endif |
389 | 389 | ||
390 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
391 | #define GET_IOSPACE(pfn) 0 | ||
392 | #define GET_PFN(pfn) (pfn) | ||
393 | |||
394 | #include <asm-generic/pgtable.h> | 390 | #include <asm-generic/pgtable.h> |
395 | 391 | ||
396 | /* | 392 | /* |
diff --git a/include/asm-parisc/pgtable.h b/include/asm-parisc/pgtable.h index d7e1b10da5c6..beb2adb979d9 100644 --- a/include/asm-parisc/pgtable.h +++ b/include/asm-parisc/pgtable.h | |||
@@ -528,10 +528,6 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, | |||
528 | 528 | ||
529 | #define pgprot_noncached(prot) __pgprot(pgprot_val(prot) | _PAGE_NO_CACHE) | 529 | #define pgprot_noncached(prot) __pgprot(pgprot_val(prot) | _PAGE_NO_CACHE) |
530 | 530 | ||
531 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
532 | #define GET_IOSPACE(pfn) 0 | ||
533 | #define GET_PFN(pfn) (pfn) | ||
534 | |||
535 | /* We provide our own get_unmapped_area to provide cache coherency */ | 531 | /* We provide our own get_unmapped_area to provide cache coherency */ |
536 | 532 | ||
537 | #define HAVE_ARCH_UNMAPPED_AREA | 533 | #define HAVE_ARCH_UNMAPPED_AREA |
diff --git a/include/asm-ppc/pgtable.h b/include/asm-ppc/pgtable.h index b1fdbf40dba2..bed452d4a5f0 100644 --- a/include/asm-ppc/pgtable.h +++ b/include/asm-ppc/pgtable.h | |||
@@ -827,10 +827,6 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma, | |||
827 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 827 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
828 | #endif | 828 | #endif |
829 | 829 | ||
830 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
831 | #define GET_IOSPACE(pfn) 0 | ||
832 | #define GET_PFN(pfn) (pfn) | ||
833 | |||
834 | /* | 830 | /* |
835 | * No page table caches to initialise | 831 | * No page table caches to initialise |
836 | */ | 832 | */ |
diff --git a/include/asm-sh/pgtable.h b/include/asm-sh/pgtable.h index 184d7fcaaf10..5b523c7e7d99 100644 --- a/include/asm-sh/pgtable.h +++ b/include/asm-sh/pgtable.h | |||
@@ -568,10 +568,6 @@ typedef pte_t *pte_addr_t; | |||
568 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 568 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
569 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 569 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
570 | 570 | ||
571 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
572 | #define GET_IOSPACE(pfn) 0 | ||
573 | #define GET_PFN(pfn) (pfn) | ||
574 | |||
575 | struct mm_struct; | 571 | struct mm_struct; |
576 | 572 | ||
577 | /* | 573 | /* |
diff --git a/include/asm-sh64/pgtable.h b/include/asm-sh64/pgtable.h index 6b97c4cb1d64..b875482eb592 100644 --- a/include/asm-sh64/pgtable.h +++ b/include/asm-sh64/pgtable.h | |||
@@ -485,10 +485,6 @@ extern void update_mmu_cache(struct vm_area_struct * vma, | |||
485 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 485 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
486 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 486 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
487 | 487 | ||
488 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
489 | #define GET_IOSPACE(pfn) 0 | ||
490 | #define GET_PFN(pfn) (pfn) | ||
491 | |||
492 | #endif /* !__ASSEMBLY__ */ | 488 | #endif /* !__ASSEMBLY__ */ |
493 | 489 | ||
494 | /* | 490 | /* |
diff --git a/include/asm-x86_64/pgtable.h b/include/asm-x86_64/pgtable.h index 5f75ee5379a7..b21083891ce8 100644 --- a/include/asm-x86_64/pgtable.h +++ b/include/asm-x86_64/pgtable.h | |||
@@ -417,10 +417,6 @@ extern int kern_addr_valid(unsigned long addr); | |||
417 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 417 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
418 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 418 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
419 | 419 | ||
420 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
421 | #define GET_IOSPACE(pfn) 0 | ||
422 | #define GET_PFN(pfn) (pfn) | ||
423 | |||
424 | #define HAVE_ARCH_UNMAPPED_AREA | 420 | #define HAVE_ARCH_UNMAPPED_AREA |
425 | 421 | ||
426 | #define pgtable_cache_init() do { } while (0) | 422 | #define pgtable_cache_init() do { } while (0) |