These two commits are required to build the linux-5.10.y branch successfully with GCC 13 in my testing. Both are backports from mainline, with a couple of tweaks to make them apply cleanly. The result has been build tested against a few different gcc versions (9.5, 11.3 & 13.1) and defconfigs (x86_64_defconfig, i386_defconfig, ARM multi_v7_defconfig, ARM64 defconfig, RISCV defconfig, RISCV rv32_defconfig) via Yocto Project builds. Patches for linux-5.15.y have also been sent: https://lore.kernel.org/stable/20230608213458.123923-1-paul.barker@xxxxxxxxxxxx/T/ Arnd Bergmann (1): ata: ahci: fix enum constants for gcc-13 Kees Cook (1): gcc-plugins: Reorganize gimple includes for GCC 13 drivers/ata/ahci.h | 245 ++++++++++++++++--------------- scripts/gcc-plugins/gcc-common.h | 9 +- 2 files changed, 129 insertions(+), 125 deletions(-) base-commit: c7992b6c7f0e2b0a87dd8e3f488250557b077c20 -- 2.34.1