diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2023-09-27 18:42:11 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-09-28 10:11:27 +0200 |
commit | b3bee1e7c3f2b1b77182302c7b2131c804175870 (patch) | |
tree | a6b957890f765628d27b8d3b12ba87df4665bc64 /arch/x86/Makefile | |
parent | 3e3eabe26dc88692d34cf76ca0e0dd331481cc15 (diff) | |
download | linux-b3bee1e7c3f2b1b77182302c7b2131c804175870.tar.gz linux-b3bee1e7c3f2b1b77182302c7b2131c804175870.tar.bz2 linux-b3bee1e7c3f2b1b77182302c7b2131c804175870.zip |
x86/boot: Compile boot code with -std=gnu11 too
Use -std=gnu11 for consistency with main kernel code.
It doesn't seem to change anything in vmlinux.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Link: https://lore.kernel.org/r/2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183
Diffstat (limited to 'arch/x86/Makefile')
-rw-r--r-- | arch/x86/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 5bfe5caaa444..776331f3f9c3 100644 --- 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) |