* [PATCH] parisc: fix building with gcc-15
@ 2025-05-20 9:00 Arnd Bergmann
2025-05-20 16:01 ` Helge Deller
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2025-05-20 9:00 UTC (permalink / raw)
To: James E.J. Bottomley, Helge Deller
Cc: Arnd Bergmann, stable, linux-parisc, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
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: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/parisc/boot/compressed/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/parisc/boot/compressed/Makefile b/arch/parisc/boot/compressed/Makefile
index 92227fa813dc..17c42d718eb3 100644
--- a/arch/parisc/boot/compressed/Makefile
+++ b/arch/parisc/boot/compressed/Makefile
@@ -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
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] parisc: fix building with gcc-15
2025-05-20 9:00 [PATCH] parisc: fix building with gcc-15 Arnd Bergmann
@ 2025-05-20 16:01 ` Helge Deller
0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2025-05-20 16:01 UTC (permalink / raw)
To: Arnd Bergmann, James E.J. Bottomley
Cc: Arnd Bergmann, stable, linux-parisc, linux-kernel
On 5/20/25 11:00, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> 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: stable@vger.kernel.org
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> arch/parisc/boot/compressed/Makefile | 1 +
> 1 file changed, 1 insertion(+)
applied.
Thanks!
Helge
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-20 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-20 9:00 [PATCH] parisc: fix building with gcc-15 Arnd Bergmann
2025-05-20 16:01 ` Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®