Re: [PATCH v4 2/9] mm/huge_memory: fix uninitialized compiler warning
From: Johannes Weiner
Date: Tue Nov 19 2019 - 10:42:23 EST
On Tue, Nov 19, 2019 at 08:23:16PM +0800, Alex Shi wrote:
> ../mm/huge_memory.c: In function âsplit_huge_page_to_listâ:
> ../mm/huge_memory.c:2766:9: warning: âflagsâ may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> lruvec = lock_page_lruvec_irqsave(head, pgdata, flags);
> ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Like with the previous patch, there is no lock_page_lruvec_irqsave()
at this point in the series.