Re: [PATCH] mm: fix a comment

From: Vlastimil Babka
Date: Fri Oct 08 2021 - 10:10:38 EST


On 10/8/21 16:03, Yinan Zhang wrote:
> I have noticed that the previous macro is #ifndef CONFIG_SPARSEMEM.
> I think the comment of #else should be CONFIG_SPARSEMEM.

Right.

> Signed-off-by: Yinan Zhang <zhangyinan2019@xxxxxxxxxxxxxxxx>

Acked-by: Vlastimil Babka <vbabka@xxxxxxx>

> ---
> mm/page_ext.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/page_ext.c b/mm/page_ext.c
> index dfb91653d..106079e67 100644
> --- a/mm/page_ext.c
> +++ b/mm/page_ext.c
> @@ -201,7 +201,7 @@ void __init page_ext_init_flatmem(void)
> panic("Out of memory");
> }
>
> -#else /* CONFIG_FLATMEM */
> +#else /* CONFIG_SPARSEMEM */
>
> struct page_ext *lookup_page_ext(const struct page *page)
> {
>