From 4196eda65efaca7bc8d4f085bbbe70346730c1de Mon Sep 17 00:00:00 2001 From: iacore Date: Mon, 24 Jun 2024 04:53:40 +0000 Subject: [PATCH] + --- arch/lkl/mm/bootmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/lkl/mm/bootmem.c b/arch/lkl/mm/bootmem.c index 94854355c8b0bf..e1e3bfa0a1eaa2 100644 --- a/arch/lkl/mm/bootmem.c +++ b/arch/lkl/mm/bootmem.c @@ -36,8 +36,8 @@ void __init bootmem_init(unsigned long mem_sz) * Give all the memory to the bootmap allocator, tell it to put the * boot mem_map at the start of memory. */ - max_low_pfn = virt_to_pfn(memory_end); - min_low_pfn = virt_to_pfn(memory_start); + max_low_pfn = virt_to_pfn((const void*)memory_end); + min_low_pfn = virt_to_pfn((const void*)memory_start); memblock_add(memory_start, mem_size); empty_zero_page = memblock_alloc(PAGE_SIZE, PAGE_SIZE);