From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH] no buddy bitmap patch : for ia64 [2/2] From: Dave Hansen In-Reply-To: <4165399D.7010600@jp.fujitsu.com> References: <4165399D.7010600@jp.fujitsu.com> Content-Type: text/plain Message-Id: <1097163793.3625.47.camel@localhost> Mime-Version: 1.0 Date: Thu, 07 Oct 2004 08:43:13 -0700 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Hiroyuki KAMEZAWA Cc: Linux Kernel ML , linux-mm , lhms , Andrew Morton , William Lee Irwin III , "Luck, Tony" , Hirokazu Takahashi List-ID: On Thu, 2004-10-07 at 05:42, Hiroyuki KAMEZAWA wrote: > #ifdef CONFIG_VIRTUAL_MEM_MAP > extern int ia64_pfn_valid (unsigned long pfn); > +#define HOLES_IN_ZONE 1 > #else > # define ia64_pfn_valid(pfn) 1 > #endif The real way to do this is to put it in a Kconfig file. something like: config HOLES_IN_ZONE bool depends on VIRTUAL_MEM_MAP right below where 'config VIRTUAL_MEM_MAP' is defined. That way, if any other architectures need it, they alter their Kconfig files instead of headers. Also, it leaves the possibility of having an arch-independent Kconfig file for memory-related options which I'd like to do in the future. -- Dave -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: aart@kvack.org