linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jan.glauber@gmail.com (Jan Glauber)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: Use SYSCALL_DEFINEx for sys_sigreturn and sys_rt_sigreturn
Date: Mon,  5 May 2014 13:27:39 +0200	[thread overview]
Message-ID: <1399289259-25020-1-git-send-email-jan.glauber@gmail.com> (raw)

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

                 reply	other threads:[~2014-05-05 11:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1399289259-25020-1-git-send-email-jan.glauber@gmail.com \
    --to=jan.glauber@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).