projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cca7c08
)
x86: make memory_add_physaddr_to_nid depend on MEMORY_HOTPLUG
author
Thomas Gleixner
<tglx@linutronix.de>
Mon, 12 May 2008 13:43:38 +0000
(15:43 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Sun, 25 May 2008 06:58:29 +0000
(08:58 +0200)
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>
arch/x86/mm/srat_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/srat_64.c
b/arch/x86/mm/srat_64.c
index 3890234e5b2629f54f1449224510ba612d58ba68..f6d0584cbf38235b333445c257cf5e75367f6646 100644
(file)
--- 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)
EXPORT_SYMBOL(__node_distance);
+#if defined(CONFIG_MEMORY_HOTPLUG_SPARSE) || defined(CONFIG_ACPI_HOTPLUG_MEMORY)
int memory_add_physaddr_to_nid(u64 start)
{
int i, ret = 0;
@@
-533,4
+534,4
@@
int memory_add_physaddr_to_nid(u64 start)
return ret;
}
EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
-
+#endif