diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-05-12 09:43:38 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 02:58:29 -0400 |
commit | 6a1673ae2201931ce34bf7ba9f90928c864d8334 (patch) | |
tree | 36202f1eb007ef1923381d77c37f358479654f6e /arch/x86/mm/srat_64.c | |
parent | cca7c0850fa0381639bf84dd06ee900e16346373 (diff) |
x86: make memory_add_physaddr_to_nid depend on MEMORY_HOTPLUG
memory_add_physaddr_to_nid() is only used in the
CONFIG_MEMORY_HOTPLUG_SPARSE || CONFIG_ACPI_HOTPLUG_MEMORY case.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/srat_64.c')
-rw-r--r-- | arch/x86/mm/srat_64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c index 3890234e5b26..f6d0584cbf38 100644 --- a/arch/x86/mm/srat_64.c +++ b/arch/x86/mm/srat_64.c | |||
@@ -522,6 +522,7 @@ int __node_distance(int a, int b) | |||
522 | 522 | ||
523 | EXPORT_SYMBOL(__node_distance); | 523 | EXPORT_SYMBOL(__node_distance); |
524 | 524 | ||
525 | #if defined(CONFIG_MEMORY_HOTPLUG_SPARSE) || defined(CONFIG_ACPI_HOTPLUG_MEMORY) | ||
525 | int memory_add_physaddr_to_nid(u64 start) | 526 | int memory_add_physaddr_to_nid(u64 start) |
526 | { | 527 | { |
527 | int i, ret = 0; | 528 | int i, ret = 0; |
@@ -533,4 +534,4 @@ int memory_add_physaddr_to_nid(u64 start) | |||
533 | return ret; | 534 | return ret; |
534 | } | 535 | } |
535 | EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); | 536 | EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); |
536 | 537 | #endif | |