Re: [PATCH v2] x86: wire up compat readv2/writev2 syscalls

From: David Drysdale
Date: Tue May 31 2016 - 03:43:39 EST


On Thu, Apr 7, 2016 at 9:43 PM, Christoph Hellwig <hch@xxxxxx> wrote:
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---
> arch/x86/entry/syscalls/syscall_32.tbl | 4 ++--
> arch/x86/entry/syscalls/syscall_64.tbl | 2 ++
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl
> index b30dd81..4cddd17 100644
> --- a/arch/x86/entry/syscalls/syscall_32.tbl
> +++ b/arch/x86/entry/syscalls/syscall_32.tbl
> @@ -384,5 +384,5 @@
> 375 i386 membarrier sys_membarrier
> 376 i386 mlock2 sys_mlock2
> 377 i386 copy_file_range sys_copy_file_range
> -378 i386 preadv2 sys_preadv2
> -379 i386 pwritev2 sys_pwritev2
> +378 i386 preadv2 sys_preadv2 compat_sys_preadv2
> +379 i386 pwritev2 sys_pwritev2 compat_sys_pwritev2
> diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/syscalls/syscall_64.tbl
> index cac6d17..555263e 100644
> --- a/arch/x86/entry/syscalls/syscall_64.tbl
> +++ b/arch/x86/entry/syscalls/syscall_64.tbl
> @@ -374,3 +374,5 @@
> 543 x32 io_setup compat_sys_io_setup
> 544 x32 io_submit compat_sys_io_submit
> 545 x32 execveat compat_sys_execveat/ptregs
> +534 x32 preadv2 compat_sys_preadv2
> +535 x32 pwritev2 compat_sys_pwritev2

Just checking: should those x32 syscall numbers be 546 / 547 ?