From: "tip-bot for Tautschnig, Michael" <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: tautschn@amazon.com, linux-kernel@vger.kernel.org,
jaswinder@infradead.org, ak@linux.intel.com, tglx@linutronix.de,
mingo@kernel.org, linux@dominikbrodowski.net,
tautschn@amazon.co.uk, hpa@zytor.com
Subject: [tip:x86/urgent] x86/sigreturn: Use SYSCALL_DEFINE0
Date: Wed, 14 Mar 2018 13:45:56 -0700 [thread overview]
Message-ID: <tip-1227b344de283f96c41de02cde4b26d5290f5302@git.kernel.org> (raw)
In-Reply-To: <9C9981F4-0E5E-42A7-8788-70F3DEAD258D@amazon.com>
Commit-ID: 1227b344de283f96c41de02cde4b26d5290f5302
Gitweb: https://git.kernel.org/tip/1227b344de283f96c41de02cde4b26d5290f5302
Author: Tautschnig, Michael <tautschn@amazon.co.uk>
AuthorDate: Wed, 14 Mar 2018 09:41:42 +0000
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 14 Mar 2018 21:43:09 +0100
x86/sigreturn: Use SYSCALL_DEFINE0
All definitions of syscalls in x86 except for those patched here have
already been using the appropriate SYSCALL_DEFINE*.
Signed-off-by: Michael Tautschnig <tautschn@amazon.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: linux-api@vger.kernel.org
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Jaswinder Singh <jaswinder@infradead.org>
Cc: "linux-api@vger.kernel.org"
Cc: "x86@kernel.org"
Link: https://lkml.kernel.org/r/9C9981F4-0E5E-42A7-8788-70F3DEAD258D@amazon.com
---
arch/x86/kernel/signal.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
index 4cdc0b27ec82..da270b95fe4d 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
@@ -25,6 +25,7 @@
#include <linux/user-return-notifier.h>
#include <linux/uprobes.h>
#include <linux/context_tracking.h>
+#include <linux/syscalls.h>
#include <asm/processor.h>
#include <asm/ucontext.h>
@@ -601,7 +602,7 @@ static int x32_setup_rt_frame(struct ksignal *ksig,
* Do a signal return; undo the signal stack.
*/
#ifdef CONFIG_X86_32
-asmlinkage unsigned long sys_sigreturn(void)
+SYSCALL_DEFINE0(sigreturn)
{
struct pt_regs *regs = current_pt_regs();
struct sigframe __user *frame;
@@ -633,7 +634,7 @@ badframe:
}
#endif /* CONFIG_X86_32 */
-asmlinkage long sys_rt_sigreturn(void)
+SYSCALL_DEFINE0(rt_sigreturn)
{
struct pt_regs *regs = current_pt_regs();
struct rt_sigframe __user *frame;
next prev parent reply other threads:[~2018-03-14 20:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-14 9:41 [PATCH] x86/sigreturn: use SYSCALL_DEFINE0 Tautschnig, Michael
2018-03-14 20:04 ` Thomas Gleixner
2018-03-14 20:36 ` Dominik Brodowski
2018-03-14 20:45 ` tip-bot for Tautschnig, Michael [this message]
2018-03-19 20:17 ` kbuild test robot
2018-03-19 22:27 ` kbuild test robot
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=tip-1227b344de283f96c41de02cde4b26d5290f5302@git.kernel.org \
--to=tipbot@zytor.com \
--cc=ak@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jaswinder@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
--cc=mingo@kernel.org \
--cc=tautschn@amazon.co.uk \
--cc=tautschn@amazon.com \
--cc=tglx@linutronix.de \
/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
Powered by JetHome