Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932376AbWEBFe3 (ORCPT ); Tue, 2 May 2006 01:34:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932377AbWEBFe2 (ORCPT ); Tue, 2 May 2006 01:34:28 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:12514 "EHLO fgwmail7.fujitsu.co.jp") by vger.kernel.org with ESMTP id S932376AbWEBFe2 (ORCPT ); Tue, 2 May 2006 01:34:28 -0400 Date: Tue, 02 May 2006 14:33:40 +0900 From: Yasunori Goto To: Andrew Morton Subject: [PATCH] Fix compile error "undefined reference" for sparc64. Cc: Linux Kernel ML X-Mailer-Plugin: BkASPil for Becky!2 Ver.2.063 Message-Id: <20060502142722.CF0C.Y-GOTO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.24.02 [ja] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1397 Lines: 43 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 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/