]> Pileus Git - ~andy/linux/blobdiff - arch/x86/mm/srat_64.c
Merge branch 'linus' into x86/cleanups
[~andy/linux] / arch / x86 / mm / srat_64.c
index 99649dccad28cef2d1399b003dcdd39c04552b5b..391d5103587172dca902e760159aba7a0ebbc127 100644 (file)
@@ -495,6 +495,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;
@@ -506,4 +507,4 @@ int memory_add_physaddr_to_nid(u64 start)
        return ret;
 }
 EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
-
+#endif