diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 9cc6da7b513e8127ee8b057de7c7395c12171753..c88bc24e31aa5214c08d8c3d0e5c427c5531d4e4 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -117,7 +117,7 @@ int memblock_mark_mirror(phys_addr_t base, phys_addr_t size); int memblock_mark_nomap(phys_addr_t base, phys_addr_t size); int memblock_clear_nomap(phys_addr_t base, phys_addr_t size); -unsigned long memblock_free_all(void); +void memblock_free_all(void); void reset_node_managed_pages(pg_data_t *pgdat); void reset_all_zones_managed_pages(void); diff --git a/mm/memblock.c b/mm/memblock.c index 8d9b5f1e70409e1ea0ba95b3c576185cb80def05..afaefa8fc6ab5cdbf841175bdcf72f2c4bf704e3 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -2050,10 +2050,8 @@ void __init reset_all_zones_managed_pages(void) /** * memblock_free_all - release free pages to the buddy allocator - * - * Return: the number of pages actually released. */ -unsigned long __init memblock_free_all(void) +void __init memblock_free_all(void) { unsigned long pages; @@ -2062,8 +2060,6 @@ unsigned long __init memblock_free_all(void) pages = free_low_memory_core_early(); totalram_pages_add(pages); - - return pages; } #if defined(CONFIG_DEBUG_FS) && defined(CONFIG_ARCH_KEEP_MEMBLOCK)