Skip to contentSkip to conversation

Fix compile error "undefined reference" for sparc64.

PATCH New Yasunori Goto 1 participant 1 message May 2, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compile error "undefined reference" for sparc64.

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.

 mm/Kconfig |    1 +
 1 files changed, 1 insertion(+)
mm/Kconfig +1 -0
Index: pgdat13/mm/Kconfig
===================================================================
@@ -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
Signature · 1 line
Yasunori Goto