Skip to content

Commit

Permalink
[MIPS] Add external declaration of pagetable_init() to pgalloc.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Feb 18, 2007
1 parent db0b937 commit 6a1e552
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,6 @@ void __init fixrange_init(unsigned long start, unsigned long end,
}

#ifndef CONFIG_NEED_MULTIPLE_NODES
extern void pagetable_init(void);

static int __init page_is_ram(unsigned long pagenr)
{
int i;
Expand Down
1 change: 1 addition & 0 deletions arch/mips/mm/pgtable-32.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/highmem.h>
#include <asm/fixmap.h>
#include <asm/pgtable.h>
#include <asm/pgalloc.h>

void pgd_init(unsigned long page)
{
Expand Down
1 change: 1 addition & 0 deletions arch/mips/mm/pgtable-64.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <linux/mm.h>
#include <asm/fixmap.h>
#include <asm/pgtable.h>
#include <asm/pgalloc.h>

void pgd_init(unsigned long page)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/sgi-ip27/ip27-memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/pfn.h>
#include <linux/highmem.h>
#include <asm/page.h>
#include <asm/pgalloc.h>
#include <asm/sections.h>

#include <asm/sn/arch.h>
Expand Down Expand Up @@ -503,7 +504,6 @@ void __init prom_free_prom_memory(void)
/* We got nothing to free here ... */
}

extern void pagetable_init(void);
extern unsigned long setup_zero_pages(void);

void __init paging_init(void)
Expand Down
2 changes: 2 additions & 0 deletions include/asm-mips/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,6 @@ static inline void pmd_free(pmd_t *pmd)

#define check_pgt_cache() do { } while (0)

extern void pagetable_init(void);

#endif /* _ASM_PGALLOC_H */

0 comments on commit 6a1e552

Please sign in to comment.