diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2007-02-18 11:27:34 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-18 16:31:36 -0500 |
commit | 6a1e552947b0d73310e534bf4eb09e14db1e5056 (patch) | |
tree | 384116e93db93b15ce026bb63d43943614ee2611 | |
parent | db0b937daf9bee741aa8fd488ea657872b9579fe (diff) |
[MIPS] Add external declaration of pagetable_init() to pgalloc.h
This fixes some sparse warnings.
pgtable-32.c:15:6: warning: symbol 'pgd_init' was not declared. Should it be static?
pgtable-32.c:32:13: warning: symbol 'pagetable_init' was not declared. Should it be static?
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/mm/init.c | 2 | ||||
-rw-r--r-- | arch/mips/mm/pgtable-32.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/pgtable-64.c | 1 | ||||
-rw-r--r-- | arch/mips/sgi-ip27/ip27-memory.c | 2 | ||||
-rw-r--r-- | include/asm-mips/pgalloc.h | 2 |
5 files changed, 5 insertions, 3 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 125a4a85ec0..13a42084443 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -314,8 +314,6 @@ void __init fixrange_init(unsigned long start, unsigned long end, | |||
314 | } | 314 | } |
315 | 315 | ||
316 | #ifndef CONFIG_NEED_MULTIPLE_NODES | 316 | #ifndef CONFIG_NEED_MULTIPLE_NODES |
317 | extern void pagetable_init(void); | ||
318 | |||
319 | static int __init page_is_ram(unsigned long pagenr) | 317 | static int __init page_is_ram(unsigned long pagenr) |
320 | { | 318 | { |
321 | int i; | 319 | int i; |
diff --git a/arch/mips/mm/pgtable-32.c b/arch/mips/mm/pgtable-32.c index 4a61e624b0e..575e4019227 100644 --- a/arch/mips/mm/pgtable-32.c +++ b/arch/mips/mm/pgtable-32.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/highmem.h> | 11 | #include <linux/highmem.h> |
12 | #include <asm/fixmap.h> | 12 | #include <asm/fixmap.h> |
13 | #include <asm/pgtable.h> | 13 | #include <asm/pgtable.h> |
14 | #include <asm/pgalloc.h> | ||
14 | 15 | ||
15 | void pgd_init(unsigned long page) | 16 | void pgd_init(unsigned long page) |
16 | { | 17 | { |
diff --git a/arch/mips/mm/pgtable-64.c b/arch/mips/mm/pgtable-64.c index c46eb651bf0..e4b565aeb00 100644 --- a/arch/mips/mm/pgtable-64.c +++ b/arch/mips/mm/pgtable-64.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/mm.h> | 10 | #include <linux/mm.h> |
11 | #include <asm/fixmap.h> | 11 | #include <asm/fixmap.h> |
12 | #include <asm/pgtable.h> | 12 | #include <asm/pgtable.h> |
13 | #include <asm/pgalloc.h> | ||
13 | 14 | ||
14 | void pgd_init(unsigned long page) | 15 | void pgd_init(unsigned long page) |
15 | { | 16 | { |
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c index 0e3d535e9f4..fe8a1066aec 100644 --- a/arch/mips/sgi-ip27/ip27-memory.c +++ b/arch/mips/sgi-ip27/ip27-memory.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/pfn.h> | 21 | #include <linux/pfn.h> |
22 | #include <linux/highmem.h> | 22 | #include <linux/highmem.h> |
23 | #include <asm/page.h> | 23 | #include <asm/page.h> |
24 | #include <asm/pgalloc.h> | ||
24 | #include <asm/sections.h> | 25 | #include <asm/sections.h> |
25 | 26 | ||
26 | #include <asm/sn/arch.h> | 27 | #include <asm/sn/arch.h> |
@@ -503,7 +504,6 @@ void __init prom_free_prom_memory(void) | |||
503 | /* We got nothing to free here ... */ | 504 | /* We got nothing to free here ... */ |
504 | } | 505 | } |
505 | 506 | ||
506 | extern void pagetable_init(void); | ||
507 | extern unsigned long setup_zero_pages(void); | 507 | extern unsigned long setup_zero_pages(void); |
508 | 508 | ||
509 | void __init paging_init(void) | 509 | void __init paging_init(void) |
diff --git a/include/asm-mips/pgalloc.h b/include/asm-mips/pgalloc.h index af121c67dc7..5685d4fc788 100644 --- a/include/asm-mips/pgalloc.h +++ b/include/asm-mips/pgalloc.h | |||
@@ -130,4 +130,6 @@ static inline void pmd_free(pmd_t *pmd) | |||
130 | 130 | ||
131 | #define check_pgt_cache() do { } while (0) | 131 | #define check_pgt_cache() do { } while (0) |
132 | 132 | ||
133 | extern void pagetable_init(void); | ||
134 | |||
133 | #endif /* _ASM_PGALLOC_H */ | 135 | #endif /* _ASM_PGALLOC_H */ |