From: Björn Töpel Date: Wed, 5 Jun 2024 11:40:44 +0000 (+0200) Subject: riscv: mm: Properly forward vmemmap_populate() altmap parameter X-Git-Tag: v6.11-rc1~94^2~7^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3ecf2fdc8f39a898f9e06481e935b460a097e10;p=thirdparty%2Fkernel%2Flinux.git riscv: mm: Properly forward vmemmap_populate() altmap parameter Make sure that the altmap parameter is properly passed on to vmemmap_populate_hugepages(). Reviewed-by: Alexandre Ghiti Signed-off-by: Björn Töpel Link: https://lore.kernel.org/r/20240605114100.315918-2-bjorn@kernel.org Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index e3218d65f21d5..ecd4e716c9953 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -1438,7 +1438,7 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node, * memory hotplug, we are not able to update all the page tables with * the new PMDs. */ - return vmemmap_populate_hugepages(start, end, node, NULL); + return vmemmap_populate_hugepages(start, end, node, altmap); } #endif