diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2015-02-27 11:02:38 +0300 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-05-04 11:50:13 +0200 |
commit | f7000522e85ef754db1bd73f8ccdb1990178c23d (patch) | |
tree | a82d3f95fe893277c223a8ffbb6f9de1f16dd627 /arch | |
parent | daf87596a7be66054c13f59dfbe3997b8aa69028 (diff) | |
download | lwn-f7000522e85ef754db1bd73f8ccdb1990178c23d.tar.gz lwn-f7000522e85ef754db1bd73f8ccdb1990178c23d.zip |
xtensa: provide __NR_sync_file_range2 instead of __NR_sync_file_range
commit 01e84c70fe40c8111f960987bcf7f931842e6d07 upstream.
xtensa actually uses sync_file_range2 implementation, so it should
define __NR_sync_file_range2 as other architectures that use that
function. That fixes userspace interface (that apparently never worked)
and avoids special-casing xtensa in libc implementations.
See the thread ending at
http://lists.busybox.net/pipermail/uclibc/2015-February/048833.html
for more details.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/include/uapi/asm/unistd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/include/uapi/asm/unistd.h b/arch/xtensa/include/uapi/asm/unistd.h index 513effd48060..d07c1886bc8f 100644 --- a/arch/xtensa/include/uapi/asm/unistd.h +++ b/arch/xtensa/include/uapi/asm/unistd.h @@ -715,7 +715,7 @@ __SYSCALL(323, sys_process_vm_writev, 6) __SYSCALL(324, sys_name_to_handle_at, 5) #define __NR_open_by_handle_at 325 __SYSCALL(325, sys_open_by_handle_at, 3) -#define __NR_sync_file_range 326 +#define __NR_sync_file_range2 326 __SYSCALL(326, sys_sync_file_range2, 6) #define __NR_perf_event_open 327 __SYSCALL(327, sys_perf_event_open, 5) |