Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

From: Kim Phillips
Date: Thu Jan 22 2015 - 22:25:53 EST


On Fri, 23 Jan 2015 08:49:36 +0900
Akinobu Mita <akinobu.mita@xxxxxxxxx> wrote:

> 2015-01-23 5:41 GMT+09:00 Kim Phillips <kim.phillips@xxxxxxxxxxxxx>:
> > Thanks. Now I get this:
> >
> > LD init/built-in.o
> > mm/built-in.o: In function `kernel_map_pages':
> > include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages'
> > include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages'
> > include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages'
> > Makefile:925: recipe for target 'vmlinux' failed
> > make: *** [vmlinux] Error 1
> >
> > but, AFAICT, that's not because this patch is invalid: it's because
> > __kernel_map_pages() isn't implemented in
> > arch/powerpc/mm/pgtable_64.c, i.e., for non-PPC_STD_MMU_64 PPC64
> > machines.
>
> Then, in order to use generic __kernel_map_pages() in mm/debug-pagealloc.c,
> CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC shouldn't be selected in
> arch/powerpc/Kconfig, when CONFIG_PPC_STD_MMU_64 isn't defined.

Thanks. I'm still build-testing this now: