[PATCH] i386 sparsemem: undefined early_pfn_to_nid when !NUMA

From: Dave Hansen
Date: Fri May 27 2005 - 11:29:17 EST



On i386, early_pfn_to_nid() is only defined when discontig.c
is compiled in. The current dependency doesn't reflect this,
probably because the default i386 config doesn't allow for
SPARSEMEM without NUMA.

But, we'll need SPARSEMEM && !NUMA for memory hotplug, and I
do this for testing anyway.

Andy, please forward on if you concur.

Signed-off-by: Dave Hansen <haveblue@xxxxxxxxxx>
---

memhotplug-dave/arch/i386/Kconfig | 1 +
1 files changed, 1 insertion(+)

diff -puN arch/i386/Kconfig~generify-early_pfn_to_nid-fix arch/i386/Kconfig
--- memhotplug/arch/i386/Kconfig~generify-early_pfn_to_nid-fix 2005-05-27 09:23:07.000000000 -0700
+++ memhotplug-dave/arch/i386/Kconfig 2005-05-27 09:23:07.000000000 -0700
@@ -837,6 +837,7 @@ source "mm/Kconfig"
config HAVE_ARCH_EARLY_PFN_TO_NID
bool
default y
+ depends on NUMA

config HIGHPTE
bool "Allocate 3rd-level pagetables from highmem"
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/