Skip to content

Commit f41ef4c

Browse files
Kefeng Wangctmarinas
authored andcommitted
arm64: mm: Cleanup useless parameters in zone_sizes_init()
Directly use max_pfn for max and no one use min, kill them. Reviewed-by: Vijay Balakrishna <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 921d161 commit f41ef4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arm64/mm/init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static phys_addr_t __init max_zone_phys(unsigned int zone_bits)
157157
return min(zone_mask, memblock_end_of_DRAM() - 1) + 1;
158158
}
159159

160-
static void __init zone_sizes_init(unsigned long min, unsigned long max)
160+
static void __init zone_sizes_init(void)
161161
{
162162
unsigned long max_zone_pfns[MAX_NR_ZONES] = {0};
163163
unsigned int __maybe_unused acpi_zone_dma_bits;
@@ -176,7 +176,7 @@ static void __init zone_sizes_init(unsigned long min, unsigned long max)
176176
if (!arm64_dma_phys_limit)
177177
arm64_dma_phys_limit = dma32_phys_limit;
178178
#endif
179-
max_zone_pfns[ZONE_NORMAL] = max;
179+
max_zone_pfns[ZONE_NORMAL] = max_pfn;
180180

181181
free_area_init(max_zone_pfns);
182182
}
@@ -374,7 +374,7 @@ void __init bootmem_init(void)
374374
* done after the fixed reservations
375375
*/
376376
sparse_init();
377-
zone_sizes_init(min, max);
377+
zone_sizes_init();
378378

379379
/*
380380
* Reserve the CMA area after arm64_dma_phys_limit was initialised.

0 commit comments

Comments
 (0)