diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2005-09-29 00:31:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-09-29 00:31:25 -0400 |
commit | 801ab3c731e77324c055769491711e620100dbfb (patch) | |
tree | 8e04e42d708681703c8e794eccd1c73b7364ba5c | |
parent | efdc1e2083e04cc70721d55803889b346c1a3de2 (diff) |
[SPARC]: Declare paging_init() in asm/pgtable.h
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/setup.c | 2 | ||||
-rw-r--r-- | include/asm-sparc/pgtable.h | 2 | ||||
-rw-r--r-- | include/asm-sparc64/pgtable.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/kernel/setup.c b/arch/sparc/kernel/setup.c index 53c192a4982f..3509e4305532 100644 --- a/arch/sparc/kernel/setup.c +++ b/arch/sparc/kernel/setup.c | |||
@@ -249,8 +249,6 @@ struct tt_entry *sparc_ttable; | |||
249 | 249 | ||
250 | struct pt_regs fake_swapper_regs; | 250 | struct pt_regs fake_swapper_regs; |
251 | 251 | ||
252 | extern void paging_init(void); | ||
253 | |||
254 | void __init setup_arch(char **cmdline_p) | 252 | void __init setup_arch(char **cmdline_p) |
255 | { | 253 | { |
256 | int i; | 254 | int i; |
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 8e8baf2354df..516f4854955f 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c | |||
@@ -492,8 +492,6 @@ void register_prom_callbacks(void) | |||
492 | "' linux-.soft2 to .soft2"); | 492 | "' linux-.soft2 to .soft2"); |
493 | } | 493 | } |
494 | 494 | ||
495 | extern void paging_init(void); | ||
496 | |||
497 | void __init setup_arch(char **cmdline_p) | 495 | void __init setup_arch(char **cmdline_p) |
498 | { | 496 | { |
499 | int i; | 497 | int i; |
diff --git a/include/asm-sparc/pgtable.h b/include/asm-sparc/pgtable.h index 8f4f6a959651..8395ad2f1c09 100644 --- a/include/asm-sparc/pgtable.h +++ b/include/asm-sparc/pgtable.h | |||
@@ -82,6 +82,8 @@ extern unsigned long page_kernel; | |||
82 | /* Top-level page directory */ | 82 | /* Top-level page directory */ |
83 | extern pgd_t swapper_pg_dir[1024]; | 83 | extern pgd_t swapper_pg_dir[1024]; |
84 | 84 | ||
85 | extern void paging_init(void); | ||
86 | |||
85 | /* Page table for 0-4MB for everybody, on the Sparc this | 87 | /* Page table for 0-4MB for everybody, on the Sparc this |
86 | * holds the same as on the i386. | 88 | * holds the same as on the i386. |
87 | */ | 89 | */ |
diff --git a/include/asm-sparc64/pgtable.h b/include/asm-sparc64/pgtable.h index 53d612aba8d5..82273c801b07 100644 --- a/include/asm-sparc64/pgtable.h +++ b/include/asm-sparc64/pgtable.h | |||
@@ -341,6 +341,8 @@ static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *p | |||
341 | extern pgd_t swapper_pg_dir[2048]; | 341 | extern pgd_t swapper_pg_dir[2048]; |
342 | extern pmd_t swapper_low_pmd_dir[2048]; | 342 | extern pmd_t swapper_low_pmd_dir[2048]; |
343 | 343 | ||
344 | extern void paging_init(void); | ||
345 | |||
344 | /* These do nothing with the way I have things setup. */ | 346 | /* These do nothing with the way I have things setup. */ |
345 | #define mmu_lockarea(vaddr, len) (vaddr) | 347 | #define mmu_lockarea(vaddr, len) (vaddr) |
346 | #define mmu_unlockarea(vaddr, len) do { } while(0) | 348 | #define mmu_unlockarea(vaddr, len) do { } while(0) |