diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-03-20 10:44:21 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-03-20 12:05:17 -0400 |
commit | 47db69752b22de2ac315d094fd09fac31b0d3bfc (patch) | |
tree | b001c3da22ebf19a89082afd30c7713329d30280 /arch/sparc/kernel/sys_sparc_64.c | |
parent | 3d0e354e4e51f40a58ae8bff7ded60f0c1f5c618 (diff) | |
download | linux-47db69752b22de2ac315d094fd09fac31b0d3bfc.tar.gz |
sparc: get rid of asm wrapper for nis_syscall()
just use current_pt_regs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/kernel/sys_sparc_64.c')
-rw-r--r-- | arch/sparc/kernel/sys_sparc_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c index b929414fa9f2..c66a396d7afe 100644 --- a/arch/sparc/kernel/sys_sparc_64.c +++ b/arch/sparc/kernel/sys_sparc_64.c @@ -480,10 +480,10 @@ SYSCALL_DEFINE5(64_mremap, unsigned long, addr, unsigned long, old_len, return sys_mremap(addr, old_len, new_len, flags, new_addr); } -/* we come to here via sys_nis_syscall so it can setup the regs argument */ -asmlinkage unsigned long c_sys_nis_syscall(struct pt_regs *regs) +SYSCALL_DEFINE0(nis_syscall) { static int count; + struct pt_regs *regs = current_pt_regs(); /* Don't make the system unusable, if someone goes stuck */ if (count++ > 5) |