0002-powerpc-boot-Fix-build-with-gcc-15.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 2d04c5b3c5728cd5e5202176e8796ffc0085c24a Mon Sep 17 00:00:00 2001
  2. From: Michal Suchanek <msuchanek@suse.de>
  3. Date: Mon, 31 Mar 2025 12:57:19 +0200
  4. Subject: [PATCH] powerpc/boot: Fix build with gcc 15
  5. Similar to x86 the ppc boot code does not build with GCC 15.
  6. Copy the fix from
  7. commit ee2ab467bddf ("x86/boot: Use '-std=gnu11' to fix build with GCC 15")
  8. Upstream: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next-test&id=5a821e2d69e26b51b7f3740b6b0c3462b8cacaff
  9. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
  10. Tested-by: Amit Machhiwal <amachhiw@linux.ibm.com>
  11. Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
  12. Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
  13. Link: https://patch.msgid.link/20250331105722.19709-1-msuchanek@suse.de
  14. [Romain: backport to 6.12.27]
  15. Signed-off-by: Romain Naour <romain.naour@smile.fr>
  16. ---
  17. arch/powerpc/boot/Makefile | 1 +
  18. 1 file changed, 1 insertion(+)
  19. diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
  20. index fa8518067d38..60a495771c05 100644
  21. --- a/arch/powerpc/boot/Makefile
  22. +++ b/arch/powerpc/boot/Makefile
  23. @@ -70,6 +70,7 @@ BOOTCPPFLAGS := -nostdinc $(LINUXINCLUDE)
  24. BOOTCPPFLAGS += -isystem $(shell $(BOOTCC) -print-file-name=include)
  25. BOOTCFLAGS := $(BOOTTARGETFLAGS) \
  26. + -std=gnu11 \
  27. -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
  28. -fno-strict-aliasing -O2 \
  29. -msoft-float -mno-altivec -mno-vsx \
  30. --
  31. 2.49.0