summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/sys_sparc32.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-03-19 23:44:52 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-03-20 12:05:04 -0400
commit8ccb004677d15ebfd44470e27bc9a399b0e71e4e (patch)
tree4af18f592b9a1d9889e9131d55958c3dd336c796 /arch/sparc/kernel/sys_sparc32.c
parenta0d32ad366bb4235267380b341fcae8307f51044 (diff)
downloadlinux-8ccb004677d15ebfd44470e27bc9a399b0e71e4e.tar.bz2
convert compat sync_file_range() to COMPAT_SYSCALL_DEFINE
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/kernel/sys_sparc32.c')
-rw-r--r--arch/sparc/kernel/sys_sparc32.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sparc/kernel/sys_sparc32.c b/arch/sparc/kernel/sys_sparc32.c
index d01b99258de2..b266797fee99 100644
--- a/arch/sparc/kernel/sys_sparc32.c
+++ b/arch/sparc/kernel/sys_sparc32.c
@@ -233,11 +233,12 @@ COMPAT_SYSCALL_DEFINE6(fadvise64_64, int, fd, u32, offhi, u32, offlo,
advice);
}
-long sys32_sync_file_range(unsigned int fd, unsigned long off_high, unsigned long off_low, unsigned long nb_high, unsigned long nb_low, unsigned int flags)
+COMPAT_SYSCALL_DEFINE6(sync_file_range, unsigned int, fd, u32, off_high, u32, off_low,
+ u32, nb_high, u32, nb_low, unsigned int, flags)
{
return sys_sync_file_range(fd,
- (off_high << 32) | off_low,
- (nb_high << 32) | nb_low,
+ ((u64)off_high << 32) | off_low,
+ ((u64)nb_high << 32) | nb_low,
flags);
}