From: Greg KH <gregkh@linuxfoundation.org>
To: Hendrik Donner <hd@os-cillation.de>
Cc: stable@vger.kernel.org
Subject: Re: Request to backport b3bee1e7c3f2b1b77182302c7b2131c804175870 (x86/boot: Compile boot code with -std=gnu11 too)
Date: Mon, 26 May 2025 14:23:03 +0200 [thread overview]
Message-ID: <2025052621-unclip-monogram-c439@gregkh> (raw)
In-Reply-To: <8fab7dc7-a99f-4168-8dff-9ef8443faf38@os-cillation.de>
On Mon, May 26, 2025 at 12:59:20PM +0200, Hendrik Donner wrote:
> Hello,
>
> with gcc 15.1.1 i see the following build issue on 6.6.91:
>
> CC arch/x86/boot/a20.o
> In file included from ./include/uapi/linux/posix_types.h:5,
> from ./include/uapi/linux/types.h:14,
> from ./include/linux/types.h:6,
> from arch/x86/boot/boot.h:22,
> from arch/x86/boot/a20.c:14:
> ./include/linux/stddef.h:11:9: error: cannot use keyword 'false' as
> enumeration constant
> 11 | false = 0,
> | ^~~~~
> ./include/linux/stddef.h:11:9: note: 'false' is a keyword with '-std=c23'
> onwards
> ./include/linux/types.h:35:33: error: 'bool' cannot be defined via 'typedef'
> 35 | typedef _Bool bool;
> | ^~~~
> ./include/linux/types.h:35:33: note: 'bool' is a keyword with '-std=c23'
> onwards
> ./include/linux/types.h:35:1: warning: useless type name in empty
> declaration
> 35 | typedef _Bool bool;
> | ^~~~~~~
> make[2]: *** [scripts/Makefile.build:243: arch/x86/boot/a20.o] Error 1
> make[1]: *** [arch/x86/Makefile:284: bzImage] Error 2
>
> Fixed by b3bee1e7c3f2b1b77182302c7b2131c804175870 (x86/boot: Compile boot
> code with -std=gnu11 too), which hasn't been backported yet.
>
> Should probably go into all stable trees.z
Is this the only change that is needed to get gcc15 working on this
kernel tree? What about newer kernel branches, they seem to be failing
on gcc15 still, which implies that 6.6.y still needs more changes,
right?
thanks,
greg k-h
next prev parent reply other threads:[~2025-05-26 12:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-26 10:59 Request to backport b3bee1e7c3f2b1b77182302c7b2131c804175870 (x86/boot: Compile boot code with -std=gnu11 too) Hendrik Donner
2025-05-26 12:23 ` Greg KH [this message]
2025-05-26 13:54 ` Hendrik Donner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2025052621-unclip-monogram-c439@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=hd@os-cillation.de \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox