diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/calls.S | 2 | ||||
-rw-r--r-- | arch/arm/kernel/sys_arm.c | 13 | ||||
-rw-r--r-- | arch/powerpc/kernel/sys_ppc32.c | 9 |
3 files changed, 10 insertions, 14 deletions
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 19326d7cdeb3..a98d0c933db0 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
@@ -350,7 +350,7 @@ | |||
350 | CALL(sys_set_robust_list) | 350 | CALL(sys_set_robust_list) |
351 | CALL(sys_get_robust_list) | 351 | CALL(sys_get_robust_list) |
352 | /* 340 */ CALL(sys_splice) | 352 | /* 340 */ CALL(sys_splice) |
353 | CALL(sys_arm_sync_file_range) | 353 | CALL(sys_sync_file_range2) |
354 | CALL(sys_tee) | 354 | CALL(sys_tee) |
355 | CALL(sys_vmsplice) | 355 | CALL(sys_vmsplice) |
356 | CALL(sys_move_pages) | 356 | CALL(sys_move_pages) |
diff --git a/arch/arm/kernel/sys_arm.c b/arch/arm/kernel/sys_arm.c index 1ca2d5174fcb..4d25e49a14f7 100644 --- a/arch/arm/kernel/sys_arm.c +++ b/arch/arm/kernel/sys_arm.c | |||
@@ -328,16 +328,3 @@ asmlinkage long sys_arm_fadvise64_64(int fd, int advice, | |||
328 | { | 328 | { |
329 | return sys_fadvise64_64(fd, offset, len, advice); | 329 | return sys_fadvise64_64(fd, offset, len, advice); |
330 | } | 330 | } |
331 | |||
332 | /* | ||
333 | * Yet more syscall fsckage - we can't fit sys_sync_file_range's | ||
334 | * arguments into the available registers with EABI. So, let's | ||
335 | * create an ARM specific syscall for this which has _sane_ | ||
336 | * arguments. (This incidentally also has an ABI-independent | ||
337 | * argument layout.) | ||
338 | */ | ||
339 | asmlinkage long sys_arm_sync_file_range(int fd, unsigned int flags, | ||
340 | loff_t offset, loff_t nbytes) | ||
341 | { | ||
342 | return sys_sync_file_range(fd, offset, nbytes, flags); | ||
343 | } | ||
diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c index 047246ad4f65..b42cbf1e2d7d 100644 --- a/arch/powerpc/kernel/sys_ppc32.c +++ b/arch/powerpc/kernel/sys_ppc32.c | |||
@@ -810,3 +810,12 @@ asmlinkage long compat_sys_request_key(const char __user *_type, | |||
810 | return sys_request_key(_type, _description, _callout_info, destringid); | 810 | return sys_request_key(_type, _description, _callout_info, destringid); |
811 | } | 811 | } |
812 | 812 | ||
813 | asmlinkage long compat_sys_sync_file_range2(int fd, unsigned int flags, | ||
814 | unsigned offset_hi, unsigned offset_lo, | ||
815 | unsigned nbytes_hi, unsigned nbytes_lo) | ||
816 | { | ||
817 | loff_t offset = ((loff_t)offset_hi << 32) | offset_lo; | ||
818 | loff_t nbytes = ((loff_t)nbytes_hi << 32) | nbytes_lo; | ||
819 | |||
820 | return sys_sync_file_range(fd, offset, nbytes, flags); | ||
821 | } | ||