linux-yocto/arch/mips
Khem Raj 231f6a1de1 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:08:50 +01:00
..
alchemy MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() 2024-01-25 15:35:50 -08:00
ar7
ath25
ath79
bcm47xx mips: implement the new page table range API 2023-08-24 16:20:22 -07:00
bcm63xx
bmips mips: bmips: BCM6358: make sure CBR is correctly set 2024-06-27 13:49:05 +02:00
boot MIPS: Loongson64: Add missing '#interrupt-cells' for loongson64c_ls7a 2025-06-19 15:28:31 +02:00
cavium-octeon just cleanups and fixes 2023-09-07 10:35:14 -07:00
cobalt
configs just cleanups and fixes 2023-09-07 10:35:14 -07:00
crypto
dec MIPS: dec: Declare which_prom() as static 2025-04-25 10:45:58 +02:00
fw
generic mips: ingenic: Enable EXT/2 divider on JZ4750/55/60 if EXT is 24 MHz 2023-06-09 09:54:17 +02:00
include MIPS: Use arch specific syscall name match function 2025-06-04 14:42:06 +02:00
ingenic
jazz Revert "change alloc_pages name in dma_map_ops to avoid name conflicts" 2024-09-04 13:28:24 +02:00
kernel MIPS: pm-cps: Use per-CPU variables as per-CPU, not per-core 2025-06-04 14:42:06 +02:00
kvm KVM: MIPS: fix -Wunused-but-set-variable warning 2023-10-12 11:25:40 -04:00
lantiq MIPS: lantiq: register smp_ops on non-smp platforms 2024-01-31 16:19:13 -08:00
lib mips: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-15 10:22:23 +02:00
loongson2ef
loongson32 MIPS: loongson32: Remove regs-rtc.h 2023-07-28 11:42:16 +02:00
loongson64 MIPS: Loongson64: remove ROM Size unit in boardinfo 2025-02-17 09:40:24 +01:00
math-emu mips/math-emu: fix emulation of the prefx instruction 2025-02-17 09:40:25 +01:00
mm mips: Fix max_mapnr being uninitialized on early stages 2024-01-31 16:18:52 -08:00
mti-malta
n64
net Revert "bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()" 2024-07-09 11:44:29 +02:00
pci MIPS: Octeron: remove source file executable bit 2024-08-03 08:54:02 +02:00
pic32 MIPS: Fixup explicit DT include clean-up 2023-07-28 11:41:09 +02:00
power
ralink MIPS: More explicit DT include clean-ups 2023-07-28 11:41:18 +02:00
rb532
sgi-ip22
sgi-ip27
sgi-ip30 MIPS: ip30: ip30-console: Add missing include 2024-08-03 08:54:31 +02:00
sgi-ip32
sibyte vgacon: rework screen_info #ifdef checks 2024-06-27 13:49:15 +02:00
sni vgacon: rework screen_info #ifdef checks 2024-06-27 13:49:15 +02:00
tools
txx9 MIPS: TXx9: Do PCI error checks on own line 2023-08-28 09:59:06 +02:00
vdso mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS 2025-06-27 11:08:50 +01:00
Kbuild
Kbuild.platforms
Kconfig MIPS: Loongson64: Enable DMA noncoherent support 2023-12-13 18:45:35 +01:00
Kconfig.debug
Makefile MIPS: Probe toolchain support of -msym32 2025-01-02 10:32:06 +01:00
Makefile.postlink