diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-11-29 12:25:20 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-11-30 06:37:12 +0300 |
commit | 9d9043f6a81713248d82d88983c06b1eaedda287 (patch) | |
tree | 07e43db996f00f85a7ef86fcc2858c4e71895349 /arch/xtensa/include | |
parent | 02ce94c229251555ac726ecfebe3458ef5905fa9 (diff) | |
download | linux-9d9043f6a81713248d82d88983c06b1eaedda287.tar.xz |
xtensa: clean up system_call/xtensa_rt_sigreturn interaction
system_call assembly code always pushes pointer to struct pt_regs as the
last additional parameter for all system calls. The only user of this
feature is xtensa_rt_sigreturn.
Avoid this special case. Define xtensa_rt_sigreturn as accepting no
argiments. Use current_pt_regs to get pointer to struct pt_regs in
xtensa_rt_sigreturn. Don't pass additional parameter from system_call
code.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r-- | arch/xtensa/include/asm/syscall.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/include/asm/syscall.h b/arch/xtensa/include/asm/syscall.h index c90fb944f9d8..f9a671cbf933 100644 --- a/arch/xtensa/include/asm/syscall.h +++ b/arch/xtensa/include/asm/syscall.h @@ -79,7 +79,7 @@ static inline void syscall_set_arguments(struct task_struct *task, regs->areg[reg[i]] = args[i]; } -asmlinkage long xtensa_rt_sigreturn(struct pt_regs*); +asmlinkage long xtensa_rt_sigreturn(void); asmlinkage long xtensa_shmat(int, char __user *, int); asmlinkage long xtensa_fadvise64_64(int, int, unsigned long long, unsigned long long); |