linux-yocto/arch/mips
Khem Raj 20fdc2599e mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS
commit 0f4ae7c6ec upstream.

GCC 15 changed the default C standard dialect from gnu17 to gnu23,
which should not have impacted the kernel because it explicitly requests
the gnu11 standard in the main Makefile. However, mips/vdso code uses
its own CFLAGS without a '-std=' value, which break with this dialect
change because of the kernel's own definitions of bool, false, and true
conflicting with the C23 reserved keywords.

  include/linux/stddef.h:11:9: error: cannot use keyword 'false' as enumeration constant
     11 |         false   = 0,
        |         ^~~~~
  include/linux/stddef.h:11:9: note: 'false' is a keyword with '-std=c23' onwards
  include/linux/types.h:35:33: error: 'bool' cannot be defined via 'typedef'
     35 | typedef _Bool                   bool;
        |                                 ^~~~
  include/linux/types.h:35:33: note: 'bool' is a keyword with '-std=c23' onwards

Add -std as specified in KBUILD_CFLAGS to the decompressor and purgatory
CFLAGS to eliminate these errors and make the C standard version of these
areas match the rest of the kernel.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-27 11:07:30 +01:00
..
alchemy MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() 2024-01-25 15:27:45 -08:00
ar7
ath25
ath79
bcm47xx
bcm63xx
bmips mips: bmips: BCM6358: make sure CBR is correctly set 2024-06-27 13:46:18 +02:00
boot MIPS: Loongson64: Add missing '#interrupt-cells' for loongson64c_ls7a 2025-06-27 11:07:16 +01:00
cavium-octeon
cobalt
configs
crypto
dec MIPS: dec: Declare which_prom() as static 2025-04-25 10:44:04 +02:00
fw MIPS: fw: Allow firmware to pass a empty env 2023-05-11 23:03:01 +09:00
generic
include MIPS: Use arch specific syscall name match function 2025-06-04 14:40:12 +02:00
ingenic
jazz
kernel MIPS: pm-cps: Use per-CPU variables as per-CPU, not per-core 2025-06-04 14:40:12 +02:00
kvm MIPS: KVM: Fix a build warning about variable set but not used 2023-12-03 07:32:09 +01:00
lantiq MIPS: lantiq: register smp_ops on non-smp platforms 2024-01-31 16:17:12 -08:00
lib
loongson2ef MIPS: Loongson: Move arch cflags to MIPS top level Makefile 2023-08-03 10:23:50 +02:00
loongson32
loongson64 MIPS: Loongson64: remove ROM Size unit in boardinfo 2025-02-21 13:49:44 +01:00
math-emu mips/math-emu: fix emulation of the prefx instruction 2025-02-21 13:49:44 +01:00
mm mips: Fix max_mapnr being uninitialized on early stages 2024-01-31 16:16:59 -08:00
mti-malta
n64
net
pci MIPS: Octeron: remove source file executable bit 2024-08-03 08:49:22 +02:00
pic32
power
ralink
rb532
sgi-ip22
sgi-ip27
sgi-ip30 MIPS: ip30: ip30-console: Add missing include 2024-08-03 08:49:44 +02:00
sgi-ip32
sibyte
sni
tools
txx9
vdso mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS 2025-06-27 11:07:30 +01:00
Kbuild
Kbuild.platforms
Kconfig MIPS: Loongson64: Enable DMA noncoherent support 2023-12-13 18:39:29 +01:00
Kconfig.debug
Makefile mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation 2025-06-27 11:07:24 +01:00
Makefile.postlink