diff options
author | 2025-03-29 08:39:03 -0700 | |
---|---|---|
committer | 2025-04-27 09:37:10 +0200 | |
commit | 0f4ae7c6ecb89bfda026d210dcf8216fb67d2333 (patch) | |
tree | bb2480d907f502992b89d0114af6073222d06670 /scripts/lib/kdoc/kdoc_output.py | |
parent | MIPS: Loongson64: Add missing '#interrupt-cells' for loongson64c_ls7a (diff) | |
download | linux-rng-0f4ae7c6ecb89bfda026d210dcf8216fb67d2333.tar.xz linux-rng-0f4ae7c6ecb89bfda026d210dcf8216fb67d2333.zip |
mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS
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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions