]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um/x86: Add system call table to header file
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 3 Jul 2025 12:38:54 +0000 (14:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Jul 2025 06:49:02 +0000 (08:49 +0200)
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 <thomas.weissschuh@linutronix.de>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://patch.msgid.link/20250703-uml-have_syscall_tracepoints-v1-1-23c1d3808578@linutronix.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/x86/um/asm/syscall.h

index 56a2f0913e3c0307958eb47815a7634447cb1390..d6208d0fad51a95f3d56879c1bceb50c3ec0f6b2 100644 (file)
@@ -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