linux-bb.org_git.bb: Fix build with gcc-13
PATCH 1/1 linux-bb.org_git.bb: Fix build with gcc-13
Signed-off-by Khem Raj <[email protected]>
--- ...s-Fix-build-for-upcoming-GCC-release.patch | 46 +++++++++++++++ ...void-64-bit-division-in-ioc_timer_fn.patch | 57 +++++++++++++++++++ ...-gcc13-keep-large-values-in-a-new-en.patch | 55 ++++++++++++++++++ .../recipes-kernel/linux/linux-bb.org_git.bb | 4 ++ 4 files changed, 162 insertions(+) create mode 100644 meta-ti-bsp/recipes-kernel/linux/files/0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch
meta-ti-bsp/recipes-kernel/linux/files/0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch new file +46 -0
@@ -0,0 +1,46 @@ +From 3cd29a3d7c25cca9989e7d8966141f725fa99c68 Mon Sep 17 00:00:00 2001 +From: Palmer Dabbelt <[email protected]> +Date: Fri, 13 Jan 2023 09:30:33 -0800 +Subject: [PATCH] gcc-plugins: Fix build for upcoming GCC release + +The upcoming GCC release has refactored the gimple plugin interface a +bit and unless gimple-iterator.h is included before gimple-fold.h I end +up with a bunch of missing declarations when building the stack +protector plugin. + +Upstream-Status: Backport [https://lore.kernel.org/all/[email protected]/] +Reported-by: Palmer Dabbelt <[email protected]> +Acked-by: Palmer Dabbelt <[email protected]> +Link: https://lore.kernel.org/all/[email protected]/ +Cc: [email protected] +Signed-off-by: Kees Cook <[email protected]> +--- + scripts/gcc-plugins/gcc-common.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/scripts/gcc-plugins/gcc-common.h ++++ b/scripts/gcc-plugins/gcc-common.h +@@ -108,7 +108,9 @@ + #include "varasm.h" + #include "stor-layout.h" + #include "internal-fn.h" ++#include "gimple.h" + #include "gimple-expr.h" ++#include "gimple-iterator.h" + #include "gimple-fold.h" + #include "context.h" + #include "tree-ssa-alias.h" +@@ -124,13 +126,10 @@ + #include "gimplify.h" + #endif + +-#include "gimple.h" +- + #if BUILDING_GCC_VERSION >= 4009 + #include "tree-ssa-operands.h" + #include "tree-phinodes.h" + #include "tree-cfg.h" +-#include "gimple-iterator.h" + #include "gimple-ssa.h" + #include "ssa-iterators.h" + #endif
meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch new file +57 -0
57 lines not on this page · raw message
meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch new file +55 -0
55 lines not on this page · raw message
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +4 -0
@@ -29,6 +29,10 @@ BRANCH:aarch64 = "v5.10.162-ti-arm64-r99" SRC_URI = "git://github.com/beagleboard/linux.git;protocol=https;branch=${BRANCH} \ file://defconfig \ file://init_disassemble_info-signature-changes-causes-compile-failures.patch \ + file://0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch \ + file://0001-ata-ahci-fix-enum-constants-for-gcc-13.patch \ + file://0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch \ + file://0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch \ " SRC_URI:append:armv7a = " file://0001-defconfig-switch-default-kernel-compression-to-LZMA.patch"
Signature · 1 line
2.40.1