Thread (3 messages) read the whole thread 3 messages, 1 author, 2025-07-03
STALE393d REVIEWED: 1 (0M)

1 review trailer.

[PATCH 1/2] um/x86: Add system call table to header file

From: Thomas Weißschuh <hidden>
Date: 2025-07-03 12:39:11
Also in: linux-um, lkml
Subsystem: the rest, user-mode linux (uml), x86 architecture (32-bit and 64-bit) · Maintainers: Linus Torvalds, Richard Weinberger, Anton Ivanov, Johannes Berg, Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen

The generic system call tracing infrastructure requires access to the
system call table. The symbol is already visible to the linker but is
lacking a public declaration.

Add a public declaration.

Signed-off-by: Thomas Weißschuh <redacted>
Reviewed-by: Nam Cao <redacted>
---
 arch/x86/um/asm/syscall.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/x86/um/asm/syscall.h b/arch/x86/um/asm/syscall.h
index 56a2f0913e3c0307958eb47815a7634447cb1390..d6208d0fad51a95f3d56879c1bceb50c3ec0f6b2 100644
--- a/arch/x86/um/asm/syscall.h
+++ b/arch/x86/um/asm/syscall.h
@@ -9,6 +9,8 @@ typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long,
 					  unsigned long, unsigned long,
 					  unsigned long, unsigned long);
 
+extern const sys_call_ptr_t sys_call_table[];
+
 static inline int syscall_get_arch(struct task_struct *task)
 {
 #ifdef CONFIG_X86_32
-- 
2.50.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help