diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-02 10:38:22 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-03 23:00:40 -0500 |
commit | 2ae80c43d480548dd32591664c93ef011ac34b21 (patch) | |
tree | 6e701db31d1695d5a324bb2cf59b1fcfd199c63f /arch/sparc | |
parent | 728ee06ca863eb05004aebcaf6f61905f545ef08 (diff) |
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')
-rw-r--r-- | arch/sparc/kernel/sys32.S | 1 | ||||
-rw-r--r-- | arch/sparc/kernel/sys_sparc32.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/kernel/sys32.S b/arch/sparc/kernel/sys32.S index 0dbc2d6afdfc..2e680b5245c9 100644 --- a/arch/sparc/kernel/sys32.S +++ b/arch/sparc/kernel/sys32.S | |||
@@ -48,7 +48,6 @@ SIGN3(sys32_futex, compat_sys_futex, %o1, %o2, %o5) | |||
48 | SIGN1(sys32_recvfrom, compat_sys_recvfrom, %o0) | 48 | SIGN1(sys32_recvfrom, compat_sys_recvfrom, %o0) |
49 | SIGN1(sys32_recvmsg, compat_sys_recvmsg, %o0) | 49 | SIGN1(sys32_recvmsg, compat_sys_recvmsg, %o0) |
50 | SIGN1(sys32_sendmsg, compat_sys_sendmsg, %o0) | 50 | SIGN1(sys32_sendmsg, compat_sys_sendmsg, %o0) |
51 | SIGN2(sys32_sync_file_range, compat_sync_file_range, %o0, %o5) | ||
52 | 51 | ||
53 | .globl sys32_mmap2 | 52 | .globl sys32_mmap2 |
54 | sys32_mmap2: | 53 | sys32_mmap2: |
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, | |||
238 | advice); | 238 | advice); |
239 | } | 239 | } |
240 | 240 | ||
241 | 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) | 241 | 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) |
242 | { | 242 | { |
243 | return sys_sync_file_range(fd, | 243 | return sys_sync_file_range(fd, |
244 | (off_high << 32) | off_low, | 244 | (off_high << 32) | off_low, |