linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: fix a comment
@ 2021-10-08 14:03 Yinan Zhang
  2021-10-08 14:10 ` Vlastimil Babka
  0 siblings, 1 reply; 2+ messages in thread
From: Yinan Zhang @ 2021-10-08 14:03 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Yinan Zhang

I have noticed that the previous macro is #ifndef CONFIG_SPARSEMEM.
I think the comment of #else should be CONFIG_SPARSEMEM.

Signed-off-by: Yinan Zhang <zhangyinan2019@email.szu.edu.cn>
---
 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)
 {
-- 
2.23.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm: fix a comment
  2021-10-08 14:03 [PATCH] mm: fix a comment Yinan Zhang
@ 2021-10-08 14:10 ` Vlastimil Babka
  0 siblings, 0 replies; 2+ messages in thread
From: Vlastimil Babka @ 2021-10-08 14:10 UTC (permalink / raw)
  To: Yinan Zhang, akpm; +Cc: linux-mm, linux-kernel

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@email.szu.edu.cn>

Acked-by: Vlastimil Babka <vbabka@suse.cz>

> ---
>  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)
>  {
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-08 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 14:03 [PATCH] mm: fix a comment Yinan Zhang
2021-10-08 14:10 ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).