summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch32
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch
new file mode 100644
index 00000000..12e12c68
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch
@@ -0,0 +1,32 @@
1From a51ebf08cec81d84ac258da1c0ead139d6ddc94f Mon Sep 17 00:00:00 2001
2From: Ryan Eatmon <reatmon@ti.com>
3Date: Tue, 2 Jul 2024 11:07:14 -0500
4Subject: [master][PATCH] perf python: Fix compile for 32bit platforms
5
6The definition for perf_sample is missing on 32bit compiles:
7
8tools/perf/util/python.c:75:28: error: field 'sample' has incomplete type
9 75 | struct perf_sample sample;
10
11Adding #include "sample.h" fixes it.
12
13Upstream-Status: Inappropriate
14
15Signed-off-by: Ryan Eatmon <reatmon@ti.com>
16---
17 tools/perf/util/python.c | 2 ++
18 1 file changed, 2 insertions(+)
19
20diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
21index 3be882b2e845..de64ca3cf2d1 100644
22--- a/tools/perf/util/python.c
23+++ b/tools/perf/util/python.c
24@@ -1,3 +1,5 @@
25+#include "sample.h"
26+
27 // SPDX-License-Identifier: GPL-2.0
28 #include <Python.h>
29 #include <structmember.h>
30--
312.17.1
32
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb
index 803db1fd..b4ec47bc 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb
@@ -24,6 +24,7 @@ KERNEL_DEFCONFIG = ""
24 24
25KERNEL_REPRODUCIBILITY_PATCHES = " \ 25KERNEL_REPRODUCIBILITY_PATCHES = " \
26 file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ 26 file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \
27 file://0001-perf-python-Fix-compile-for-32bit-platforms.patch \
27" 28"
28 29
29DEFCONFIG_NAME = "multi_v7_defconfig" 30DEFCONFIG_NAME = "multi_v7_defconfig"