Skip to content

Commit 7cbb015

Browse files
arndbhdeller
authored andcommitted
parisc: fix building with gcc-15
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. Cc: [email protected] Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent cccaea1 commit 7cbb015

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/parisc/boot/compressed/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ KBUILD_CFLAGS += -fno-PIE -mno-space-regs -mdisable-fpregs -Os
1818
ifndef CONFIG_64BIT
1919
KBUILD_CFLAGS += -mfast-indirect-calls
2020
endif
21+
KBUILD_CFLAGS += -std=gnu11
2122

2223
LDFLAGS_vmlinux := -X -e startup --as-needed -T
2324
$(obj)/vmlinux: $(obj)/vmlinux.lds $(addprefix $(obj)/, $(OBJECTS)) $(LIBGCC) FORCE

0 commit comments

Comments
 (0)