linux-yocto/arch/s390
Nathan Chancellor 9f69eb424a s390: Add '-std=gnu11' to decompressor and purgatory CFLAGS
commit 3b8b80e993 upstream.

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: stable@vger.kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20250122-s390-fix-std-for-gcc-15-v1-1-8b00cadee083@kernel.org
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-10 15:57:42 +02:00
..
appldata
boot s390/boot: Remove alt_stfle_fac_list from decompressor 2024-06-16 13:39:41 +02:00
configs s390: update defconfigs 2021-09-15 14:29:21 +02:00
crypto crypto: s390/aes - Fix buffer overread in CTR mode 2024-02-23 08:54:24 +01:00
hypfs s390/hypfs: avoid error message under KVM 2022-09-05 10:30:11 +02:00
include s390/futex: Fix FUTEX_OP_ANDN implementation 2025-03-13 12:50:23 +01:00
kernel s390/entry: Fix last breaking event handling in case of stack corruption 2025-07-10 15:57:41 +02:00
kvm KVM: s390: Don't use %pK through tracepoints 2025-05-02 07:44:36 +02:00
lib s390/uaccess: add missing earlyclobber annotations to __clear_user() 2023-04-05 11:25:01 +02:00
mm s390/mm: Add cond_resched() to cmm_alloc/free_pages() 2024-10-17 15:11:49 +02:00
net s390/bpf: Store backchain even for leaf progs 2025-06-27 11:05:13 +01:00
pci s390/pci: Fix __pcilg_mio_inuser() inline assembly 2025-06-27 11:05:38 +01:00
purgatory s390: Add '-std=gnu11' to decompressor and purgatory CFLAGS 2025-07-10 15:57:42 +02:00
tools s390/disassembler: add instructions 2021-07-27 09:39:19 +02:00
Kbuild
Kconfig s390: remove unneeded 'select BUILD_BIN2C' 2022-07-07 17:53:27 +02:00
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Makefile s390: Add '-std=gnu11' to decompressor and purgatory CFLAGS 2025-07-10 15:57:42 +02:00