Subject: Re: linux-next: build failure after merge of the mm-unstable tree

From: Andrew Morton <[email-masked]>
Date: Wed, 3 Jun 2026 11:17:52 -0700

On Wed, 3 Jun 2026 10:39:14 +0100 Mark Brown <[email-masked]> wrote:

> After merging the mm-unstable tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
> 
> /tmp/next/build/mm/khugepaged.c:1357:6: error: variable 'pte' is used uninitialized whenever 'if' condition is true
> [-Werror,-Wsometimes-uninitialized]
>  1357 |         if (result != SCAN_SUCCEED)
>       |             ^~~~~~~~~~~~~~~~~~~~~~
> /tmp/next/build/mm/khugepaged.c:1458:6: note: uninitialized use occurs here
>  1458 |         if (pte)
>       |             ^~~
> /tmp/next/build/mm/khugepaged.c:1357:2: note: remove the 'if' if its condition is always false
>  1357 |         if (result != SCAN_SUCCEED)
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>  1358 |                 goto out_up_write;
>       |                 ~~~~~~~~~~~~~~~~~
> /tmp/next/build/mm/khugepaged.c:1352:6: error: variable 'pte' is used uninitialized whenever 'if' condition is true
> [-Werror,-Wsometimes-uninitialized]
>  1352 |         if (result != SCAN_SUCCEED)

Dunno, really - perhaps I fed you some intermediate state.  Everything
looks OK here so it should come good.