All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for 6.14.y] perf tools: Fix build error for LoongArch
@ 2025-05-20  6:30 Tiezhu Yang
  2025-05-20 10:27 ` Patch "perf tools: Fix build error for LoongArch" has been added to the 6.14-stable tree gregkh
  2025-05-20 13:42 ` [PATCH for 6.14.y] perf tools: Fix build error for LoongArch Sasha Levin
  0 siblings, 2 replies; 3+ messages in thread
From: Tiezhu Yang @ 2025-05-20  6:30 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: stable, linux-perf-users, loongarch, linux-kernel

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>
---
 tools/perf/arch/loongarch/include/syscall_table.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/arch/loongarch/include/syscall_table.h b/tools/perf/arch/loongarch/include/syscall_table.h
index 9d0646d3455c..b53e31c15805 100644
--- 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>
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-20 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20  6:30 [PATCH for 6.14.y] perf tools: Fix build error for LoongArch Tiezhu Yang
2025-05-20 10:27 ` Patch "perf tools: Fix build error for LoongArch" has been added to the 6.14-stable tree gregkh
2025-05-20 13:42 ` [PATCH for 6.14.y] perf tools: Fix build error for LoongArch Sasha Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.