powerpc/boot: Fix build with gcc 15
authorMichal Suchanek <msuchanek@suse.de>
Mon, 31 Mar 2025 10:57:19 +0000 (12:57 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 6 May 2025 03:01:09 +0000 (08:31 +0530)
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 <msuchanek@suse.de>
Tested-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250331105722.19709-1-msuchanek@suse.de
arch/powerpc/boot/Makefile

index 184d0680e6617979c5c633af1148b1b949f95501..a7ab087d412c187ea872c4f9ff6f5b2b4a1eb745 100644 (file)
@@ -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 \