From: Michal Suchanek Date: Mon, 31 Mar 2025 10:57:19 +0000 (+0200) Subject: powerpc/boot: Fix build with gcc 15 X-Git-Tag: v6.16-rc1~200^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a821e2d69e26b51b7f3740b6b0c3462b8cacaff;p=thirdparty%2Fkernel%2Flinux.git powerpc/boot: Fix build with gcc 15 Similar to x86 the ppc boot code does not build with GCC 15. Copy the fix from commit ee2ab467bddf ("x86/boot: Use '-std=gnu11' to fix build with GCC 15") Signed-off-by: Michal Suchanek Tested-by: Amit Machhiwal Tested-by: Venkat Rao Bagalkote Signed-off-by: Madhavan Srinivasan Link: https://patch.msgid.link/20250331105722.19709-1-msuchanek@suse.de --- diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 184d0680e6617..a7ab087d412c1 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -70,6 +70,7 @@ BOOTCPPFLAGS := -nostdinc $(LINUXINCLUDE) BOOTCPPFLAGS += -isystem $(shell $(BOOTCC) -print-file-name=include) BOOTCFLAGS := $(BOOTTARGETFLAGS) \ + -std=gnu11 \ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -O2 \ -msoft-float -mno-altivec -mno-vsx \