summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorTony Breeds2008-07-01 03:30:06 +0200
committerPaul Mackerras2008-07-03 08:58:07 +0200
commitdb7f37de2c8346c33cf9279fa9d8e8316e8d821c (patch)
tree0a49c9aeb1c5c071d5766fca1fbfc6c5f2c3d0ff /arch/powerpc
parentpowerpc: Update for VSX core file and ptrace (diff)
downloadkernel-qcow2-linux-db7f37de2c8346c33cf9279fa9d8e8316e8d821c.tar.gz
kernel-qcow2-linux-db7f37de2c8346c33cf9279fa9d8e8316e8d821c.tar.xz
kernel-qcow2-linux-db7f37de2c8346c33cf9279fa9d8e8316e8d821c.zip
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/mm/mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 51f82d83bf14..776ba6ad5e1e 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -44,6 +44,7 @@
#include <asm/btext.h>
#include <asm/tlb.h>
#include <asm/sections.h>
+#include <asm/sparsemem.h>
#include <asm/vdso.h>
#include <asm/fixmap.h>