m68k: fix conditional use of init_pointer_table
PATCH 1/1 m68k: fix conditional use of init_pointer_table
From: Greg Ungerer <[email protected]>
Compiling 3.8-rc1 fails for some m68k targets (the non-mmu ones) with:
CC arch/m68k/mm/init.oarch/m68k/mm/init.c: In function ‘mem_init’:arch/m68k/mm/init.c:191:2: error: implicit declaration of function ‘init_pointer_table’ arch/m68k/mm/init.c:191:36: error: ‘kernel_pg_dir’ undeclared (first use in this function) arch/m68k/mm/init.c:191:36: note: each undeclared identifier is reported only once for each function it appears in arch/m68k/mm/init.c:192:18: error: ‘PTRS_PER_PGD’ undeclared (first use in this function) arch/m68k/mm/init.c:194:4: error: implicit declaration of function ‘__pgd_page’ arch/m68k/mm/init.c:198:6: error: ‘zero_pgtable’ undeclared (first use in this function) make[2]: *** [arch/m68k/mm/init.o] Error 1
make[1]: *** [arch/m68k/mm] Error 2
make[1]: Leaving directory `/home/gerg/new-wave.git/linux-3.x'
make: *** [linux] Error 1
Change the conditions that define init_pointer_table so that it matches what actually uses it.
--- arch/m68k/mm/init.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
arch/m68k/mm/init.c +5 -3
@@ -39,6 +39,11 @@void *empty_zero_page;EXPORT_SYMBOL (empty_zero_page); +#if !defined(CONFIG_SUN3 ) && !defined(CONFIG_COLDFIRE ) +extern void init_pointer_table (unsigned long ptable); +extern pmd_t *zero_pgtable; +#endif +#ifdef CONFIG_MMU pg_data_t pg_data_map[MAX_NUMNODES ];
@@ -69,9 +74,6 @@ void __init m68k_setup_node(int node) node_set_online(node); } -extern void init_pointer_table (unsigned long ptable); -extern pmd_t *zero_pgtable; -#else /* CONFIG_MMU */ /*
Signature · 1 line
1.7.0.4