From: Greg Kroah-Hartman Date: Tue, 27 May 2025 14:47:57 +0000 (+0200) Subject: 6.6-stable patches X-Git-Tag: v6.12.31~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=098e00128b6a08a24223cdd89b872d8df094f8ea;p=thirdparty%2Fkernel%2Fstable-queue.git 6.6-stable patches added patches: x86-boot-compile-boot-code-with-std-gnu11-too.patch --- diff --git a/queue-6.6/series b/queue-6.6/series index 2d8aec2eeb..c62d3da980 100644 --- a/queue-6.6/series +++ b/queue-6.6/series @@ -384,3 +384,4 @@ ksmbd-fix-stream-write-failure.patch spi-spi-fsl-dspi-restrict-register-range-for-regmap-.patch spi-spi-fsl-dspi-halt-the-module-after-a-new-message.patch spi-spi-fsl-dspi-reset-sr-flags-before-sending-a-new.patch +x86-boot-compile-boot-code-with-std-gnu11-too.patch diff --git a/queue-6.6/x86-boot-compile-boot-code-with-std-gnu11-too.patch b/queue-6.6/x86-boot-compile-boot-code-with-std-gnu11-too.patch new file mode 100644 index 0000000000..3110d10be8 --- /dev/null +++ b/queue-6.6/x86-boot-compile-boot-code-with-std-gnu11-too.patch @@ -0,0 +1,34 @@ +From b3bee1e7c3f2b1b77182302c7b2131c804175870 Mon Sep 17 00:00:00 2001 +From: Alexey Dobriyan +Date: Wed, 27 Sep 2023 18:42:11 +0300 +Subject: x86/boot: Compile boot code with -std=gnu11 too + +From: Alexey Dobriyan + +commit b3bee1e7c3f2b1b77182302c7b2131c804175870 upstream. + +Use -std=gnu11 for consistency with main kernel code. + +It doesn't seem to change anything in vmlinux. + +Signed-off-by: Alexey Dobriyan +Signed-off-by: Ingo Molnar +Acked-by: H. Peter Anvin (Intel) +Link: https://lore.kernel.org/r/2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183 +Cc: Hendrik Donner +Signed-off-by: Greg Kroah-Hartman +--- + arch/x86/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/x86/Makefile ++++ b/arch/x86/Makefile +@@ -43,7 +43,7 @@ endif + + # How to compile the 16-bit code. Note we always compile for -march=i386; + # that way we can complain to the user if the CPU is insufficient. +-REALMODE_CFLAGS := -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \ ++REALMODE_CFLAGS := -std=gnu11 -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \ + -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \ + -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ + -mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)