Skip to content

Commit

Permalink
Use explicit int conversion in bootmem.c
Browse files Browse the repository at this point in the history
This addresses the compile issue when using gcc 14 on Arch Linux
  • Loading branch information
quangIO committed Jul 9, 2024
1 parent 699f87c commit 5109d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/lkl/mm/bootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5109d4d

Please sign in to comment.