diff options
-rw-r--r-- | arch/x86/mm/init_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 474e28f10815..dafdeb2a5938 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -1019,6 +1019,7 @@ void __ref vmemmap_free(struct page *memmap, unsigned long nr_pages) | |||
1019 | remove_pagetable(start, end, false); | 1019 | remove_pagetable(start, end, false); |
1020 | } | 1020 | } |
1021 | 1021 | ||
1022 | #ifdef CONFIG_MEMORY_HOTREMOVE | ||
1022 | static void __meminit | 1023 | static void __meminit |
1023 | kernel_physical_mapping_remove(unsigned long start, unsigned long end) | 1024 | kernel_physical_mapping_remove(unsigned long start, unsigned long end) |
1024 | { | 1025 | { |
@@ -1028,7 +1029,6 @@ kernel_physical_mapping_remove(unsigned long start, unsigned long end) | |||
1028 | remove_pagetable(start, end, true); | 1029 | remove_pagetable(start, end, true); |
1029 | } | 1030 | } |
1030 | 1031 | ||
1031 | #ifdef CONFIG_MEMORY_HOTREMOVE | ||
1032 | int __ref arch_remove_memory(u64 start, u64 size) | 1032 | int __ref arch_remove_memory(u64 start, u64 size) |
1033 | { | 1033 | { |
1034 | unsigned long start_pfn = start >> PAGE_SHIFT; | 1034 | unsigned long start_pfn = start >> PAGE_SHIFT; |