[IA64] Build fix for __early_pfn_to_nid() undefined link error
authorTony Luck <aegl@agluck-desktop.(none)>
Thu, 19 Feb 2009 19:22:36 +0000 (11:22 -0800)
committerTony Luck <aegl@agluck-desktop.(none)>
Thu, 19 Feb 2009 19:22:36 +0000 (11:22 -0800)
ia64 only defines __early_pfn_to_nid() for SPARSEMEM && NUMA configurations,
so the recent:

commit: f2dbcfa738368c8a40d4a5f0b65dc9879577cb21
mm: clean up for early_pfn_to_nid()

ends up with some link problems for certain configuration files.

Fix arch/ia64/Kconfig to only define HAVE_ARCH_EARLY_PFN_TO_NID in the
cases where we do provide this function.

Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/Kconfig

index 6183aeccecf1f9d564cc2bc2832943a235ed3871..20d6d28ca7354e6c85bc043310a0b8aff0ba41e0 100644 (file)
@@ -479,8 +479,7 @@ config HOLES_IN_ZONE
        default y if VIRTUAL_MEM_MAP
 
 config HAVE_ARCH_EARLY_PFN_TO_NID
-       def_bool y
-       depends on NEED_MULTIPLE_NODES
+       def_bool NUMA && SPARSEMEM
 
 config HAVE_ARCH_NODEDATA_EXTENSION
        def_bool y