* [PATCH] memblock: Fix doc for memblock_phys_free
@ 2022-12-16 10:03 Miaoqian Lin
2023-01-04 10:32 ` Mike Rapoport
0 siblings, 1 reply; 2+ messages in thread
From: Miaoqian Lin @ 2022-12-16 10:03 UTC (permalink / raw)
To: Mike Rapoport, Andrew Morton, linux-mm, linux-kernel; +Cc: linmq006
memblock_phys_free() is the counterpart to memblock_phys_alloc.
Change memblock_alloc_xx() with memblock_phys_alloc_xx() to keep
a consistency.
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
mm/memblock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memblock.c b/mm/memblock.c
index 511d4783dcf1..d036c7861310 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -836,7 +836,7 @@ void __init_memblock memblock_free(void *ptr, size_t size)
* @base: phys starting address of the boot memory block
* @size: size of the boot memory block in bytes
*
- * Free boot memory block previously allocated by memblock_alloc_xx() API.
+ * Free boot memory block previously allocated by memblock_phys_alloc_xx() API.
* The freeing memory will not be released to the buddy allocator.
*/
int __init_memblock memblock_phys_free(phys_addr_t base, phys_addr_t size)
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] memblock: Fix doc for memblock_phys_free
2022-12-16 10:03 [PATCH] memblock: Fix doc for memblock_phys_free Miaoqian Lin
@ 2023-01-04 10:32 ` Mike Rapoport
0 siblings, 0 replies; 2+ messages in thread
From: Mike Rapoport @ 2023-01-04 10:32 UTC (permalink / raw)
To: Miaoqian Lin; +Cc: Andrew Morton, linux-mm, linux-kernel
On Fri, Dec 16, 2022 at 02:03:03PM +0400, Miaoqian Lin wrote:
> memblock_phys_free() is the counterpart to memblock_phys_alloc.
> Change memblock_alloc_xx() with memblock_phys_alloc_xx() to keep
> a consistency.
>
> Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
> ---
> mm/memblock.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/memblock.c b/mm/memblock.c
> index 511d4783dcf1..d036c7861310 100644
> --- a/mm/memblock.c
> +++ b/mm/memblock.c
> @@ -836,7 +836,7 @@ void __init_memblock memblock_free(void *ptr, size_t size)
> * @base: phys starting address of the boot memory block
> * @size: size of the boot memory block in bytes
> *
> - * Free boot memory block previously allocated by memblock_alloc_xx() API.
> + * Free boot memory block previously allocated by memblock_phys_alloc_xx() API.
> * The freeing memory will not be released to the buddy allocator.
> */
> int __init_memblock memblock_phys_free(phys_addr_t base, phys_addr_t size)
> --
> 2.25.1
Applied, thanks!
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-04 10:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-16 10:03 [PATCH] memblock: Fix doc for memblock_phys_free Miaoqian Lin
2023-01-04 10:32 ` Mike Rapoport
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox