Re: Build failure with GCC 15 (-std=gnu23)
From: Nathan Chancellor
Date: Tue Jan 21 2025 - 16:53:42 EST
On Mon, Jan 20, 2025 at 04:16:30PM -0800, Kees Cook wrote:
> On Wed, Nov 20, 2024 at 03:28:35AM +0900, Masahiro Yamada wrote:
> > Some Makefile overriding KBUILD_CFLAGS would forget to add
> > $(CSTD_FLAG), for the same reason as they would forget to add
> > -std=gnu11.
>
> But at least we'd have 1 place to change when we changed the std level.
>
> FWIW, I just ran into this build failure too testing GCC 15 from their
> ToT. Both EFI and compressed Makefiles needed it in my build.
Yeah, I suggested the simpler diff in a separate thread, which seems to
agree with your testing:
https://lore.kernel.org/20250120182048.GA3244701@ax162/
I don't mind drafting up a commit message and sending those along if
that would be preferrable.
Cheers,
Nathan