Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390: remove native mmap2() syscall

The mmap2() syscall has never been used on 64-bit s390x and should
have been removed as part of 5a79859ae0f3 ("s390: remove 31 bit
support").

Remove it now.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

-27
-27
arch/s390/kernel/syscall.c
··· 38 38 39 39 #include "entry.h" 40 40 41 - /* 42 - * Perform the mmap() system call. Linux for S/390 isn't able to handle more 43 - * than 5 system call parameters, so this system call uses a memory block 44 - * for parameter passing. 45 - */ 46 - 47 - struct s390_mmap_arg_struct { 48 - unsigned long addr; 49 - unsigned long len; 50 - unsigned long prot; 51 - unsigned long flags; 52 - unsigned long fd; 53 - unsigned long offset; 54 - }; 55 - 56 - SYSCALL_DEFINE1(mmap2, struct s390_mmap_arg_struct __user *, arg) 57 - { 58 - struct s390_mmap_arg_struct a; 59 - int error = -EFAULT; 60 - 61 - if (copy_from_user(&a, arg, sizeof(a))) 62 - goto out; 63 - error = ksys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, a.offset); 64 - out: 65 - return error; 66 - } 67 - 68 41 #ifdef CONFIG_SYSVIPC 69 42 /* 70 43 * sys_ipc() is the de-multiplexer for the SysV IPC calls.