]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 May 2025 10:27:37 +0000 (12:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 May 2025 10:27:37 +0000 (12:27 +0200)
added patches:
perf-tools-fix-build-error-for-loongarch.patch

queue-6.14/perf-tools-fix-build-error-for-loongarch.patch [new file with mode: 0644]
queue-6.14/series

diff --git a/queue-6.14/perf-tools-fix-build-error-for-loongarch.patch b/queue-6.14/perf-tools-fix-build-error-for-loongarch.patch
new file mode 100644 (file)
index 0000000..f64ae6e
--- /dev/null
@@ -0,0 +1,47 @@
+From yangtiezhu@loongson.cn  Tue May 20 11:10:01 2025
+From: Tiezhu Yang <yangtiezhu@loongson.cn>
+Date: Tue, 20 May 2025 14:30:09 +0800
+Subject: perf tools: Fix build error for LoongArch
+To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Cc: stable@vger.kernel.org, linux-perf-users@vger.kernel.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org
+Message-ID: <20250520063009.23504-1-yangtiezhu@loongson.cn>
+
+From: Tiezhu Yang <yangtiezhu@loongson.cn>
+
+There exists the following error when building perf tools on LoongArch:
+
+  CC      util/syscalltbl.o
+In file included from util/syscalltbl.c:16:
+tools/perf/arch/loongarch/include/syscall_table.h:2:10: fatal error: asm/syscall_table_64.h: No such file or directory
+    2 | #include <asm/syscall_table_64.h>
+      |          ^~~~~~~~~~~~~~~~~~~~~~~~
+compilation terminated.
+
+This is because the generated syscall header is syscalls_64.h rather
+than syscall_table_64.h. The above problem was introduced from v6.14,
+then the header syscall_table.h has been removed from mainline tree
+in commit af472d3c4454 ("perf syscalltbl: Remove syscall_table.h"),
+just fix it only for the linux-6.14.y branch of stable tree.
+
+By the way, no need to fix the mainline tree and there is no upstream
+git id for this patch.
+
+How to reproduce:
+
+  git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
+  cd linux && git checkout origin/linux-6.14.y
+  make JOBS=1 -C tools/perf
+
+Fixes: fa70857a27e5 ("perf tools loongarch: Use syscall table")
+Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ tools/perf/arch/loongarch/include/syscall_table.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/tools/perf/arch/loongarch/include/syscall_table.h
++++ b/tools/perf/arch/loongarch/include/syscall_table.h
+@@ -1,2 +1,2 @@
+ /* SPDX-License-Identifier: GPL-2.0 */
+-#include <asm/syscall_table_64.h>
++#include <asm/syscalls_64.h>
index c86041c935c8e75b24a737d4f054eb268d213375..ce1b73e4a844751a3a61ebf1ab1f0c57a52b63f3 100644 (file)
@@ -141,3 +141,4 @@ accel-ivpu-fix-missing-mmu-events-if-file_priv-is-unbound.patch
 accel-ivpu-flush-pending-jobs-of-device-s-workqueues.patch
 drm-xe-gsc-do-not-flush-the-gsc-worker-from-the-reset-path.patch
 mm-page_alloc-fix-race-condition-in-unaccepted-memory-handling.patch
+perf-tools-fix-build-error-for-loongarch.patch