[PATCH v2 2/4] mm: simplify compat_sys_move_pages

Christoph Hellwig hch at infradead.org
Tue Nov 3 03:36:28 EST 2020


>  #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.



More information about the kexec mailing list