xtensa: provide __NR_sync_file_range2 instead of __NR_sync_file_range
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 27 Feb 2015 08:02:38 +0000 (11:02 +0300)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:17 +0000 (19:12 -0400)
commit0333a446432e2604be0d1d3fd34e766fd560011f
tree312b0fe732cbbe3195dfa634c175f88c034e31b5
parent6a87cc5ee776ca7ba67554401622a8f23832b978
xtensa: provide __NR_sync_file_range2 instead of __NR_sync_file_range

[ Upstream commit 01e84c70fe40c8111f960987bcf7f931842e6d07 ]

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.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/xtensa/include/uapi/asm/unistd.h