Re: [PATCH v2 2/4] mm: simplify compat_sys_move_pages

From: Christoph Hellwig
Date: Tue Nov 03 2020 - 03:36:35 EST


> #ifdef CONFIG_COMPAT
> COMPAT_SYSCALL_DEFINE6(move_pages, pid_t, pid, compat_ulong_t, nr_pages,
> + compat_uptr_t __user *, pages,
> const int __user *, nodes,
> int __user *, status,
> int, flags)
> {
> + return kernel_move_pages(pid, nr_pages,
> + (const void __user *__user *)pages,
> + nodes, status, flags);
> }

Same as for kexec - all the compat syscall tables can just point to
the native version now.