Skip to content

Commit

Permalink
sparc32: fix sparse warning in init_32.c
Browse files Browse the repository at this point in the history
Fix following warning:
init_32.c:112:22: warning: symbol 'bootmem_init' was not declared. Should it be static?

Fix by adding a proper prototype in pgtable_32.h and drop
the local prototype in srmmu.c

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Apr 29, 2014
1 parent e1b2f13 commit 4c9660f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions arch/sparc/include/asm/pgtable_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ struct page;

extern void load_mmu(void);
extern unsigned long calc_highpages(void);
unsigned long __init bootmem_init(unsigned long *pages_avail);

#define pte_ERROR(e) __builtin_trap()
#define pmd_ERROR(e) __builtin_trap()
Expand Down
2 changes: 0 additions & 2 deletions arch/sparc/mm/srmmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,6 @@ static void __init map_kernel(void)

void (*poke_srmmu)(void) = NULL;

extern unsigned long bootmem_init(unsigned long *pages_avail);

void __init srmmu_paging_init(void)
{
int i;
Expand Down

0 comments on commit 4c9660f

Please sign in to comment.