diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2021-01-14 16:08:17 +0900 |
---|---|---|
committer | Mike Rapoport <rppt@linux.ibm.com> | 2021-01-14 15:29:11 +0200 |
commit | 097d43d8570457c1af9b09fab15412697b177f35 (patch) | |
tree | c2bc0218ccc7c1ab0ed44b2ba18b554cbc731774 /mm/memblock.c | |
parent | 7c53f6b671f4aba70ff15e1b05148b10d58c2837 (diff) | |
download | linux-rpi-097d43d8570457c1af9b09fab15412697b177f35.tar.gz linux-rpi-097d43d8570457c1af9b09fab15412697b177f35.tar.bz2 linux-rpi-097d43d8570457c1af9b09fab15412697b177f35.zip |
mm: memblock: remove return value of memblock_free_all()
No one checks the return value of memblock_free_all().
Make the return value void.
memblock_free_all() is used on mem_init() for each
architecture, and the total count of freed pages will be added
to _totalram_pages variable by calling totalram_pages_add().
so do not need to return total count of freed pages.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Diffstat (limited to 'mm/memblock.c')
-rw-r--r-- | mm/memblock.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index d24bcfa88d2f..daf06f2847ed 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -2087,10 +2087,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; @@ -2099,8 +2097,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) |