]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memblock: remove return value of memblock_free_all()
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 14 Jan 2021 07:08:17 +0000 (16:08 +0900)
committerMike Rapoport <rppt@linux.ibm.com>
Thu, 14 Jan 2021 13:29:11 +0000 (15:29 +0200)
commitf0bdc4c4729a62ef53894c959dc3d8ca013dd44c
treec2bc0218ccc7c1ab0ed44b2ba18b554cbc731774
parent23a2b9809c00c14636d193186909bff30026c39d
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>
include/linux/memblock.h
mm/memblock.c