Re: [PATCH] mm/vmscan: avoid false-positive -Wuninitialized warning, again
From: Arnd Bergmann
Date: Thu Sep 17 2026 - 10:42:20 EST
On Thu, Sep 17, 2026, at 12:15, Arnd Bergmann wrote:
> On Thu, Sep 17, 2026, at 08:03, Andrew Morton wrote:
> I also managed to create a reduced test case, see
> https://godbolt.org/z/xofecssz4 but this still doesn't make sense
> to me. I do see that gcc creates a both an out-of-line version
> of read_ctrl_pos() and also inlines it. Marking it either
> __always_inline or noinline avoids the warning.
I now reported this as a gcc bug at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127454
Let's see what they think.
Arnd