linux-yocto/arch/mips
Khem Raj 5155f04287 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:05:27 +01:00
..
alchemy MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() 2024-01-25 14:52:50 -08:00
ar7
ath25
ath79
bcm47xx MIPS: BCM47XX: Cast memcmp() of function to (void *) 2022-10-26 12:35:30 +02:00
bcm63xx MIPS: BCM63xx: Add check for NULL for clk in clk_enable 2022-12-31 13:14:05 +01:00
bmips mips: bmips: BCM6358: make sure CBR is correctly set 2024-07-05 09:14:29 +02:00
boot MIPS: Loongson64: Add missing '#interrupt-cells' for loongson64c_ls7a 2025-06-27 11:05:16 +01:00
cavium-octeon MIPS: OCTEON: warn only once if deprecated link status is being used 2022-12-31 13:14:05 +01:00
cobalt
configs Remove DECnet support from kernel 2023-06-21 15:59:15 +02:00
crypto
dec MIPS: dec: Declare which_prom() as static 2025-05-02 07:44:23 +02:00
fw MIPS: fw: Allow firmware to pass a empty env 2023-05-11 23:00:17 +09:00
generic
include MIPS: Use arch specific syscall name match function 2025-06-04 14:38:00 +02:00
ingenic
jazz
kernel MIPS: pm-cps: Use per-CPU variables as per-CPU, not per-core 2025-06-04 14:38:00 +02:00
kvm MIPS: KVM: Fix a build warning about variable set but not used 2023-12-03 07:31:23 +01:00
lantiq MIPS: vpe-mt: drop physical_memsize 2024-03-01 13:21:51 +01:00
lib
loongson2ef MIPS: Prefer cc-option for additions to cflags 2025-06-27 11:05:21 +01:00
loongson32 MIPS: Loongson32: Fix PHY-mode being left unspecified 2022-09-28 11:11:48 +02:00
loongson64 MIPS: Loongson64: remove ROM Size unit in boardinfo 2025-03-13 12:50:28 +01:00
math-emu mips/math-emu: fix emulation of the prefx instruction 2025-03-13 12:50:28 +01:00
mm memblock: drop memblock_free_early_nid() and memblock_free_early() 2025-03-13 12:50:07 +01:00
mti-malta
n64
net
netlogic
pci MIPS: Octeron: remove source file executable bit 2024-08-19 05:45:06 +02:00
pic32 MIPS: pic32: treat port as signed integer 2022-12-02 17:41:02 +01:00
power
ralink mips: ralink: mt7621: do not use kzalloc too early 2022-12-31 13:14:04 +01:00
rb532
sgi-ip22
sgi-ip27 memblock: allow to specify flags with memblock_add_node() 2023-12-20 15:17:33 +01:00
sgi-ip30 MIPS: ip30: ip30-console: Add missing include 2024-08-19 05:45:21 +02:00
sgi-ip32
sibyte
sni
tools
txx9
vdso mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS 2025-06-27 11:05:27 +01:00
vr41xx MIPS: Remove repetitive increase irq_err_count 2022-06-29 09:03:24 +02:00
Kbuild
Kbuild.platforms
Kconfig MIPS: Loongson64: Enable DMA noncoherent support 2023-12-13 18:36:50 +01:00
Kconfig.debug
Makefile mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation 2025-06-27 11:05:21 +01:00
Makefile.postlink