]> err.no Git - linux-2.6/commit
powerpc: Fix building of arch/powerpc/mm/mem.o when MEMORY_HOTPLUG=y and SPARSEMEM=n
authorTony Breeds <tony@bakeyournoodle.com>
Tue, 1 Jul 2008 01:30:06 +0000 (11:30 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 3 Jul 2008 06:58:07 +0000 (16:58 +1000)
commitdb7f37de2c8346c33cf9279fa9d8e8316e8d821c
tree0a49c9aeb1c5c071d5766fca1fbfc6c5f2c3d0ff
parentf3e909c2750eb20536bacacc867dc9047b70546a
powerpc: Fix building of arch/powerpc/mm/mem.o when MEMORY_HOTPLUG=y and SPARSEMEM=n

Currently the kernel fails to build with the above config options with:
  CC      arch/powerpc/mm/mem.o
arch/powerpc/mm/mem.c: In function 'arch_add_memory':
arch/powerpc/mm/mem.c:130: error: implicit declaration of function 'create_section_mapping'

This explicitly includes asm/sparsemem.h in arch/powerpc/mm/mem.c and
moves the guards in include/asm-powerpc/sparsemem.h to protect the
SPARSEMEM specific portions only.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/mem.c
include/asm-powerpc/sparsemem.h