Merge tag 'v5.5-rc7' into perf/core, to pick up fixes
[sfrench/cifs-2.6.git] / arch / x86 / mm / init_64.c
index b326f144021939f7216ede302db393c986cc18ea..abbdecb75fad8fe2d7b1f671fefc18b0c27e6e40 100644 (file)
@@ -1212,10 +1212,8 @@ void __ref arch_remove_memory(int nid, u64 start, u64 size,
 {
        unsigned long start_pfn = start >> PAGE_SHIFT;
        unsigned long nr_pages = size >> PAGE_SHIFT;
-       struct page *page = pfn_to_page(start_pfn) + vmem_altmap_offset(altmap);
-       struct zone *zone = page_zone(page);
 
-       __remove_pages(zone, start_pfn, nr_pages, altmap);
+       __remove_pages(start_pfn, nr_pages, altmap);
        kernel_physical_mapping_remove(start, start + size);
 }
 #endif /* CONFIG_MEMORY_HOTPLUG */