aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rustdoc_test_gen.rs
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2025-01-23 02:54:27 +0000
committerAlexander Gordeev <[email protected]>2025-01-28 08:49:35 +0000
commit3b8b80e993766dc96d1a1c01c62f5d15fafc79b9 (patch)
tree9f4d4e3fa815c7e0c468524b598323e682a5049b /scripts/rustdoc_test_gen.rs
parents390/bitops: Use correct constraint for arch_test_bit() inline assembly (diff)
downloadkernel-3b8b80e993766dc96d1a1c01c62f5d15fafc79b9.tar.gz
kernel-3b8b80e993766dc96d1a1c01c62f5d15fafc79b9.zip
s390: Add '-std=gnu11' to decompressor and purgatory CFLAGS
GCC 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, there are certain places in the s390 code that use their 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=gnu11' 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. Cc: [email protected] Signed-off-by: Nathan Chancellor <[email protected]> Tested-by: Heiko Carstens <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_gen.rs')
0 files changed, 0 insertions, 0 deletions