Skip to content

Commit fa81ab4

Browse files
Yuuoniyrppt
authored andcommitted
memblock: Fix doc for memblock_phys_free
memblock_phys_free() is the counterpart to memblock_phys_alloc. Change memblock_alloc_xx() with memblock_phys_alloc_xx() to keep consistency. Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Link: https://lore.kernel.org/r/20221216100304.688209-1-linmq006@gmail.com Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
1 parent 3407267 commit fa81ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/memblock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ void __init_memblock memblock_free(void *ptr, size_t size)
836836
* @base: phys starting address of the boot memory block
837837
* @size: size of the boot memory block in bytes
838838
*
839-
* Free boot memory block previously allocated by memblock_alloc_xx() API.
839+
* Free boot memory block previously allocated by memblock_phys_alloc_xx() API.
840840
* The freeing memory will not be released to the buddy allocator.
841841
*/
842842
int __init_memblock memblock_phys_free(phys_addr_t base, phys_addr_t size)

0 commit comments

Comments
 (0)