aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memblock.h
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2021-01-14 16:08:17 +0900
committerMike Rapoport <rppt@linux.ibm.com>2021-01-14 15:29:11 +0200
commit097d43d8570457c1af9b09fab15412697b177f35 (patch)
treec2bc0218ccc7c1ab0ed44b2ba18b554cbc731774 /include/linux/memblock.h
parentLinux 5.11-rc3 (diff)
downloadlinux-dev-097d43d8570457c1af9b09fab15412697b177f35.tar.xz
linux-dev-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 'include/linux/memblock.h')
-rw-r--r--include/linux/memblock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h
index b93c44b9121e..acf1e6a85066 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);