Commit 6a1673ae authored by Thomas Gleixner's avatar Thomas Gleixner

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: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent cca7c085
...@@ -522,6 +522,7 @@ int __node_distance(int a, int b) ...@@ -522,6 +522,7 @@ int __node_distance(int a, int b)
EXPORT_SYMBOL(__node_distance); EXPORT_SYMBOL(__node_distance);
#if defined(CONFIG_MEMORY_HOTPLUG_SPARSE) || defined(CONFIG_ACPI_HOTPLUG_MEMORY)
int memory_add_physaddr_to_nid(u64 start) int memory_add_physaddr_to_nid(u64 start)
{ {
int i, ret = 0; int i, ret = 0;
...@@ -533,4 +534,4 @@ int memory_add_physaddr_to_nid(u64 start) ...@@ -533,4 +534,4 @@ int memory_add_physaddr_to_nid(u64 start)
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment