Skip to contentSkip to conversation

i386 sparsemem: undefined early_pfn_to_nid when !NUMA

PATCH In review Dave Hansen 2 participants 2 messages May 27, 2005 – Jun 3, 2005 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386 sparsemem: undefined early_pfn_to_nid when !NUMA

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.

---

 memhotplug-dave/arch/i386/Kconfig |    1 +
 1 files changed, 1 insertion(+)
arch/i386/Kconfig renamed from arch/i386/Kconfig~generify-early_pfn_to_nid-fix +1 -0
diff -puN arch/i386/Kconfig~generify-early_pfn_to_nid-fix arch/i386/Kconfig
@@ -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, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw

Seem benign for normal use and allows testing for hotplug. Tested on my test boxes.

Andrew please apply to -mm.

-apw

=== 8< ===
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.

diffstat sparsemem-i386-undefined-early_pfn_to_nid-when-not-NUMA

---
 Kconfig |    1 +
 1 files changed, 1 insertion(+)
arch/i386/Kconfig +1 -0
diff -upN reference/arch/i386/Kconfig current/arch/i386/Kconfig
@@ -803,6 +803,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, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>