File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ static phys_addr_t __init max_zone_phys(unsigned int zone_bits)
157
157
return min (zone_mask , memblock_end_of_DRAM () - 1 ) + 1 ;
158
158
}
159
159
160
- static void __init zone_sizes_init (unsigned long min , unsigned long max )
160
+ static void __init zone_sizes_init (void )
161
161
{
162
162
unsigned long max_zone_pfns [MAX_NR_ZONES ] = {0 };
163
163
unsigned int __maybe_unused acpi_zone_dma_bits ;
@@ -176,7 +176,7 @@ static void __init zone_sizes_init(unsigned long min, unsigned long max)
176
176
if (!arm64_dma_phys_limit )
177
177
arm64_dma_phys_limit = dma32_phys_limit ;
178
178
#endif
179
- max_zone_pfns [ZONE_NORMAL ] = max ;
179
+ max_zone_pfns [ZONE_NORMAL ] = max_pfn ;
180
180
181
181
free_area_init (max_zone_pfns );
182
182
}
@@ -374,7 +374,7 @@ void __init bootmem_init(void)
374
374
* done after the fixed reservations
375
375
*/
376
376
sparse_init ();
377
- zone_sizes_init (min , max );
377
+ zone_sizes_init ();
378
378
379
379
/*
380
380
* Reserve the CMA area after arm64_dma_phys_limit was initialised.
You can’t perform that action at this time.
0 commit comments