* [PATCH] ARM: Use SYSCALL_DEFINEx for sys_sigreturn and sys_rt_sigreturn
@ 2014-05-05 11:27 Jan Glauber
0 siblings, 0 replies; only message in thread
From: Jan Glauber @ 2014-05-05 11:27 UTC (permalink / raw)
To: linux-arm-kernel
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 <jan.glauber@gmail.com>
---
arch/arm/kernel/signal.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
index bd19834..7aeda80 100644
--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-05 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-05 11:27 [PATCH] ARM: Use SYSCALL_DEFINEx for sys_sigreturn and sys_rt_sigreturn Jan Glauber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).