[PATCH] Fix compile error "undefined reference" for sparc64.

From: Yasunori Goto
Date: Tue May 02 2006 - 01:34:42 EST


Hi. Andrew-san.

This is to fix compile error against "undefined reference to
`arch_add_memory'". This error occurred on sparc64.
This means that memory hotplug can be enable even if
architecture doesn't have memory hotplug feature.

Sparsemem is useful even if it doesn't have memory hotplug.
So, this patch allows hotplug for only the architecture which have
memory hotplug feature (ia64, x86-32/64, ppc64 now).
Sparc64 can use sparsemem option by it.

This patch is for 2.6.17-rc3-mm1.

Please apply.

Signed-off-by: Yasunori Goto <y-goto@xxxxxxxxxxxxxx>

mm/Kconfig | 1 +
1 files changed, 1 insertion(+)

Index: pgdat13/mm/Kconfig
===================================================================
--- pgdat13.orig/mm/Kconfig 2006-05-02 13:21:53.000000000 -0400
+++ pgdat13/mm/Kconfig 2006-05-02 13:50:07.000000000 -0400
@@ -116,6 +116,7 @@
config MEMORY_HOTPLUG
bool "Allow for memory hot-add"
depends on SPARSEMEM && HOTPLUG && !SOFTWARE_SUSPEND
+ depends on (IA64 || X86 || PPC64)

comment "Memory hotplug is currently incompatible with Software Suspend"
depends on SPARSEMEM && HOTPLUG && SOFTWARE_SUSPEND

--
Yasunori Goto


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/