* Re: [PATCH] mm/page_alloc: remove unneeded forward declaration of __free_pages_ok()
2026-10-22 12:45 [PATCH] mm/page_alloc: remove unneeded forward declaration of __free_pages_ok() Zenghui Yu
@ 2026-10-22 14:12 ` Zi Yan
2026-10-22 16:43 ` Johannes Weiner
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Zi Yan @ 2026-10-22 14:12 UTC (permalink / raw)
To: Zenghui Yu, linux-mm, linux-kernel
Cc: akpm, vbabka, surenb, mhocko, brendan.jackman, hannes
On Thu Oct 22, 2026 at 8:45 AM EDT, Zenghui Yu wrote:
> From: "Zenghui Yu (Huawei)" <zenghui.yu@linux.dev>
>
> All remaining callers of __free_pages_ok() appear after its definition, so
> the forward declaration near the top of mm/page_alloc.c is no longer
> needed. Remove it.
>
> Signed-off-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
> ---
> mm/page_alloc.c | 2 --
> 1 file changed, 2 deletions(-)
>
LGTM. Thanks.
Reviewed-by: Zi Yan <ziy@nvidia.com>
--
Best Regards,
Yan, Zi
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] mm/page_alloc: remove unneeded forward declaration of __free_pages_ok()
2026-10-22 12:45 [PATCH] mm/page_alloc: remove unneeded forward declaration of __free_pages_ok() Zenghui Yu
2026-10-22 14:12 ` Zi Yan
@ 2026-10-22 16:43 ` Johannes Weiner
2026-10-23 11:11 ` Anshuman Khandual
2026-10-23 12:29 ` Dev Jain
3 siblings, 0 replies; 5+ messages in thread
From: Johannes Weiner @ 2026-10-22 16:43 UTC (permalink / raw)
To: Zenghui Yu
Cc: linux-mm, linux-kernel, akpm, vbabka, surenb, mhocko,
brendan.jackman, ziy
On Thu, Oct 22, 2026 at 08:45:04PM +0800, Zenghui Yu wrote:
> From: "Zenghui Yu (Huawei)" <zenghui.yu@linux.dev>
>
> All remaining callers of __free_pages_ok() appear after its definition, so
> the forward declaration near the top of mm/page_alloc.c is no longer
> needed. Remove it.
>
> Signed-off-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm/page_alloc: remove unneeded forward declaration of __free_pages_ok()
2026-10-22 12:45 [PATCH] mm/page_alloc: remove unneeded forward declaration of __free_pages_ok() Zenghui Yu
2026-10-22 14:12 ` Zi Yan
2026-10-22 16:43 ` Johannes Weiner
@ 2026-10-23 11:11 ` Anshuman Khandual
2026-10-23 12:29 ` Dev Jain
3 siblings, 0 replies; 5+ messages in thread
From: Anshuman Khandual @ 2026-10-23 11:11 UTC (permalink / raw)
To: Zenghui Yu
Cc: linux-mm, linux-kernel, akpm, vbabka, surenb, mhocko,
brendan.jackman, hannes, ziy
On Thu, Oct 22, 2026 at 08:45:04PM +0800, Zenghui Yu wrote:
> From: "Zenghui Yu (Huawei)" <zenghui.yu@linux.dev>
>
> All remaining callers of __free_pages_ok() appear after its definition, so
> the forward declaration near the top of mm/page_alloc.c is no longer
> needed. Remove it.
>
> Signed-off-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
> ---
> mm/page_alloc.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index 0396c50b96f0..6db90e0aa929 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -216,8 +216,6 @@ gfp_t gfp_allowed_mask __read_mostly = GFP_BOOT_MASK;
> unsigned int pageblock_order __read_mostly;
> #endif
>
> -static void __free_pages_ok(struct page *page, unsigned int order,
> - fpi_t fpi_flags);
> static void reserve_highatomic_pageblock(struct page *page, int order,
> struct zone *zone);
>
> --
> 2.56.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm/page_alloc: remove unneeded forward declaration of __free_pages_ok()
2026-10-22 12:45 [PATCH] mm/page_alloc: remove unneeded forward declaration of __free_pages_ok() Zenghui Yu
` (2 preceding siblings ...)
2026-10-23 11:11 ` Anshuman Khandual
@ 2026-10-23 12:29 ` Dev Jain
3 siblings, 0 replies; 5+ messages in thread
From: Dev Jain @ 2026-10-23 12:29 UTC (permalink / raw)
To: Zenghui Yu, linux-mm, linux-kernel
Cc: akpm, vbabka, surenb, mhocko, brendan.jackman, hannes, ziy
On 22/10/26 6:15 pm, Zenghui Yu wrote:
> From: "Zenghui Yu (Huawei)" <zenghui.yu@linux.dev>
>
> All remaining callers of __free_pages_ok() appear after its definition, so
> the forward declaration near the top of mm/page_alloc.c is no longer
> needed. Remove it.
>
> Signed-off-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
> ---
Reviewed-by: Dev Jain <dev.jain@arm.com>
> mm/page_alloc.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index 0396c50b96f0..6db90e0aa929 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -216,8 +216,6 @@ gfp_t gfp_allowed_mask __read_mostly = GFP_BOOT_MASK;
> unsigned int pageblock_order __read_mostly;
> #endif
>
> -static void __free_pages_ok(struct page *page, unsigned int order,
> - fpi_t fpi_flags);
> static void reserve_highatomic_pageblock(struct page *page, int order,
> struct zone *zone);
>
^ permalink raw reply [flat|nested] 5+ messages in thread