summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/sys_sparc32.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-02 16:38:22 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2013-03-04 05:00:40 +0100
commit2ae80c43d480548dd32591664c93ef011ac34b21 (patch)
tree6e701db31d1695d5a324bb2cf59b1fcfd199c63f /arch/sparc/kernel/sys_sparc32.c
parentppc compat wrappers for add_key(2) and request_key(2) are pointless (diff)
downloadlinux-2ae80c43d480548dd32591664c93ef011ac34b21.tar.xz
linux-2ae80c43d480548dd32591664c93ef011ac34b21.zip
sparc: no need to sign-extend in sync_file_range() wrapper
the first argument will be sign-extended by sys_sync_file_range() SYSCALL_DEFINE-generate wrapper; the last argument is unsigned int, so the same wrapper will will truncate it anyway. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/sys_sparc32.c b/arch/sparc/kernel/sys_sparc32.c
index d546188b13df..3d0ddbc005fe 100644
--- a/arch/sparc/kernel/sys_sparc32.c
+++ b/arch/sparc/kernel/sys_sparc32.c
@@ -238,7 +238,7 @@ long compat_sys_fadvise64_64(int fd,
advice);
}
-long compat_sync_file_range(int fd, unsigned long off_high, unsigned long off_low, unsigned long nb_high, unsigned long nb_low, int flags)
+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)
{
return sys_sync_file_range(fd,
(off_high << 32) | off_low,