diff options
author | Tautschnig, Michael <tautschn@amazon.co.uk> | 2018-03-14 05:41:42 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-04-02 14:16:14 -0400 |
commit | 4c8ca51af730cce5cc5fdc7605f8aa20575c0731 (patch) | |
tree | b670a59c1c94cc1fb850500a4bc3c062b7686298 | |
parent | 025bd3905acab2cdfeb1a521491bee5e33a8fc90 (diff) |
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>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jaswinder Singh <jaswinder@infradead.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: x86@kernel.org
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | arch/x86/kernel/signal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index 83a26726b689..da270b95fe4d 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/user-return-notifier.h> | 25 | #include <linux/user-return-notifier.h> |
26 | #include <linux/uprobes.h> | 26 | #include <linux/uprobes.h> |
27 | #include <linux/context_tracking.h> | 27 | #include <linux/context_tracking.h> |
28 | #include <linux/syscalls.h> | ||
28 | 29 | ||
29 | #include <asm/processor.h> | 30 | #include <asm/processor.h> |
30 | #include <asm/ucontext.h> | 31 | #include <asm/ucontext.h> |
@@ -601,7 +602,7 @@ static int x32_setup_rt_frame(struct ksignal *ksig, | |||
601 | * Do a signal return; undo the signal stack. | 602 | * Do a signal return; undo the signal stack. |
602 | */ | 603 | */ |
603 | #ifdef CONFIG_X86_32 | 604 | #ifdef CONFIG_X86_32 |
604 | asmlinkage long sys_sigreturn(void) | 605 | SYSCALL_DEFINE0(sigreturn) |
605 | { | 606 | { |
606 | struct pt_regs *regs = current_pt_regs(); | 607 | struct pt_regs *regs = current_pt_regs(); |
607 | struct sigframe __user *frame; | 608 | struct sigframe __user *frame; |
@@ -633,7 +634,7 @@ badframe: | |||
633 | } | 634 | } |
634 | #endif /* CONFIG_X86_32 */ | 635 | #endif /* CONFIG_X86_32 */ |
635 | 636 | ||
636 | asmlinkage long sys_rt_sigreturn(void) | 637 | SYSCALL_DEFINE0(rt_sigreturn) |
637 | { | 638 | { |
638 | struct pt_regs *regs = current_pt_regs(); | 639 | struct pt_regs *regs = current_pt_regs(); |
639 | struct rt_sigframe __user *frame; | 640 | struct rt_sigframe __user *frame; |