Linux kernel -stable discussions
 help / color / mirror / Atom feed
* Request to backport b3bee1e7c3f2b1b77182302c7b2131c804175870 (x86/boot: Compile boot code with -std=gnu11 too)
@ 2025-05-26 10:59 Hendrik Donner
  2025-05-26 12:23 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Hendrik Donner @ 2025-05-26 10:59 UTC (permalink / raw)
  To: stable

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.

Regards,
Hendrik

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-26 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2025-05-26 13:54   ` Hendrik Donner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox