The free_bootmem_late and memblock_free_late do exactly the same thing: they iterate over a range and give pages to the page allocator. Replace calls to free_bootmem_late with calls to memblock_free_late and remove the bootmem variant.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -30,8 +30,6 @@ extern unsigned long free_all_bootmem(void); · 29 unmodified lines | ||
| 30 | 30 | extern void reset_node_managed_pages(pg_data_t *pgdat); |
| 31 | 31 | extern void reset_all_zones_managed_pages(void); |
| 32 | 32 | |
| 33 | −extern void free_bootmem_late(unsigned long physaddr, unsigned long size); | |
| 34 | − | |
| 35 | 33 | /* We are using top down, so it is safe to use 0 here */ |
| 36 | 34 | #define BOOTMEM_LOW_LIMIT 0 |
| 37 | 35 | |