Skip to contentSkip to conversation

parisc: fix building with gcc-15

PATCH Applied Arnd Bergmann 2 participants 2 messages May 20, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: fix building with gcc-15

From: Arnd Bergmann <[email protected]>

The decompressor is built with the default C dialect, which is now gnu23 on gcc-15, and this clashes with the kernel's bool type definition:

In file included from include/uapi/linux/posix_types.h:5,
from arch/parisc/boot/compressed/misc.c:7:
include/linux/stddef.h:11:9: error: cannot use keyword 'false' as enumeration constant
11 | false = 0,

Add the -std=gnu11 argument here, as we do for all other architectures.

---
 arch/parisc/boot/compressed/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/parisc/boot/compressed/Makefile +1 -0
index 92227fa813dc..17c42d718eb3 100644
@@ -18,6 +18,7 @@ KBUILD_CFLAGS += -fno-PIE -mno-space-regs -mdisable-fpregs -Os
 ifndef CONFIG_64BIT
 KBUILD_CFLAGS += -mfast-indirect-calls
 endif
+KBUILD_CFLAGS += -std=gnu11
 
 LDFLAGS_vmlinux := -X -e startup --as-needed -T
 $(obj)/vmlinux: $(obj)/vmlinux.lds $(addprefix $(obj)/, $(OBJECTS)) $(LIBGCC) FORCE
Signature · 1 line
2.39.5
maintainer Applied
#1 lore raw
Quoted 10 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The decompressor is built with the default C dialect, which is now gnu23 on gcc-15, and this clashes with the kernel's bool type definition:

In file included from include/uapi/linux/posix_types.h:5,
from arch/parisc/boot/compressed/misc.c:7:
include/linux/stddef.h:11:9: error: cannot use keyword 'false' as enumeration constant
11 | false = 0,

Quoted 7 lines

Add the -std=gnu11 argument here, as we do for all other architectures.

---
  arch/parisc/boot/compressed/Makefile | 1 +
  1 file changed, 1 insertion(+)

applied.
Thanks!
Helge