diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-03-20 10:34:57 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-03-20 12:05:17 -0400 |
commit | 3d0e354e4e51f40a58ae8bff7ded60f0c1f5c618 (patch) | |
tree | 0743109297ab83f7072783a5bdf95083b37de6f3 /arch/sparc/kernel/systbls.h | |
parent | 8c82ccd63192a3ed66a454fdd70da2a4cc8455a1 (diff) | |
download | linux-3d0e354e4e51f40a58ae8bff7ded60f0c1f5c618.tar.bz2 |
sparc: switch compat {f,}truncate64() to COMPAT_SYSCALL_DEFINE
... and drop the pointless checks - sys_truncate() itself
might've lacked the check when that stuff was first written,
but it has already grown one by the time that stuff went into
mainline.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/kernel/systbls.h')
-rw-r--r-- | arch/sparc/kernel/systbls.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sparc/kernel/systbls.h b/arch/sparc/kernel/systbls.h index 922c253ee086..1cb02fa28e9c 100644 --- a/arch/sparc/kernel/systbls.h +++ b/arch/sparc/kernel/systbls.h @@ -49,12 +49,12 @@ asmlinkage long sys_utrap_install(utrap_entry_t type, asmlinkage long sys_memory_ordering(unsigned long model); asmlinkage void sparc64_set_context(struct pt_regs *regs); asmlinkage void sparc64_get_context(struct pt_regs *regs); -asmlinkage long sys32_truncate64(const char __user * path, - unsigned long high, - unsigned long low); -asmlinkage long sys32_ftruncate64(unsigned int fd, - unsigned long high, - unsigned long low); +asmlinkage long compat_sys_truncate64(const char __user * path, + u32 high, + u32 low); +asmlinkage long compat_sys_ftruncate64(unsigned int fd, + u32 high, + u32 low); struct compat_stat64; asmlinkage long compat_sys_stat64(const char __user * filename, struct compat_stat64 __user *statbuf); |