From: Andrew Morton Subject: Re: CONFIG_ACPI_HOTPLUG_MEMORY=m with x86_64 devel tree Date: Wed, 22 Mar 2006 03:02:08 -0800 Message-ID: <20060322030208.30e3581e.akpm@osdl.org> References: <20060321222332.1a037c8e.akpm@osdl.org> <20060322192804.E490.Y-GOTO@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.osdl.org ([65.172.181.4]:59554 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1750728AbWCVLFc (ORCPT ); Wed, 22 Mar 2006 06:05:32 -0500 In-Reply-To: <20060322192804.E490.Y-GOTO@jp.fujitsu.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Yasunori Goto Cc: ak@muc.de, linux-acpi@vger.kernel.org, tony.luck@intel.com Yasunori Goto wrote: > > > WARNING: "remove_memory" [drivers/acpi/acpi_memhotplug.ko] undefined! > > WARNING: "add_memory" [drivers/acpi/acpi_memhotplug.ko] undefined! > > WARNING: "acpi_os_allocate" [drivers/acpi/acpi_memhotplug.ko] undefined! > > > > Does it actually make sense to load acpi_memhotplug.ko as a module? Will > > it all work? > > Are these warning 2.6.16-rc6-mm2? > I tried it on ia64. > If EXPORT_SYMBOL_GPL for them are defined, it worked well as a module. > Probably, x86-64 will work by same definition. > > In 2.6.16 stock kernel, EXPORT_SYMBOL is already defined for > add_memory() and remove_memory() of x86-64. (only x86-64, not for ia64). > acpi_os_allocate() is not called in acpi_memhotplug.ko of 2.6.16. > it is called only on 2.6-16-rc6-mm2. > I think the problem was introduced by one of the newly-queued patches in Andi's tree, possibly ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt-current/patches/hotadd-reserve If acpi_memhotplug.ko works OK as a module then I guess adding the exports is the right fix.