ARM: Use SYSCALL_DEFINEx for sys_sigreturn and sys_rt_sigreturn
PATCH 1/1 ARM: Use SYSCALL_DEFINEx for sys_sigreturn and sys_rt_sigreturn
Use the SYSCALL_DEFINEx macros to declare the system calls sigreturn and rt_sigreturn. This enables system call tracing which is only available in the SYSCALL_DEFINEx macros.
Signed-off-by Jan Glauber <[email protected]>
--- arch/arm/kernel/signal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/arm/kernel/signal.c +3 -2
@@ -14,6 +14,7 @@#include <linux/uaccess.h> #include <linux/tracehook.h> #include <linux/uprobes.h> +#include <linux/syscalls.h> #include <asm/elf.h> #include <asm/cacheflush.h>
@@ -186,7 +187,7 @@ static int restore_sigframe(struct pt_regs *regs, struct sigframe __user *sf)return err; } -asmlinkage int sys_sigreturn(struct pt_regs *regs) +SYSCALL_DEFINE1(sigreturn, struct pt_regs *, regs) {struct sigframe __user *frame;
@@ -216,7 +217,7 @@ badframe:return 0 ; } -asmlinkage int sys_rt_sigreturn(struct pt_regs *regs) +SYSCALL_DEFINE1(rt_sigreturn, struct pt_regs *, regs) {struct rt_sigframe __user *frame;
Signature · 1 line
1.7.9.5