Re: mm: huge_memory.c:2736:31: error: variable 'page' is uninitialized when used here [-Werror,-Wuninitialized]
From: Nathan Chancellor
Date: Wed Jun 26 2024 - 13:00:29 EST
Hi Naresh,
On Wed, Jun 26, 2024 at 10:14:56PM +0530, Naresh Kamboju wrote:
> The x86_64 clang builds failed on Linux next due to these warnings / errors.
>
> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
>
> Build error:
> ------
> mm/huge_memory.c:2736:31: error: variable 'page' is uninitialized when
> used here [-Werror,-Wuninitialized]
> 2736 | folio_remove_rmap_pmd(folio, page, vma);
> | ^~~~
> /builds/linux/mm/huge_memory.c:2700:19: note: initialize the variable
> 'page' to silence this warning
> 2700 | struct page *page;
> | ^
> | = NULL
> 1 error generated.
>
> patch that is causing this build failures,
> mm/vmscan: avoid split lazyfree THP during shrink_folio_list()
Thanks for the report. It looks like Andrew addressed this in
mm-unstable based on an earlier report (although that change might need
some more polish ;)
https://lore.kernel.org/202406260514.SLhNM9kQ-lkp@xxxxxxxxx/
https://git.kernel.org/akpm/mm/c/199e6c3bd568657e85ead22d6f41c46e74ad9a75
Cheers,
Nathan