Skip to content

Commit 5daf62d

Browse files
committed
s390: remove native mmap2() syscall
The mmap2() syscall has never been used on 64-bit s390x and should have been removed as part of 5a79859 ("s390: remove 31 bit support"). Remove it now. Acked-by: Heiko Carstens <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 8968422 commit 5daf62d

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

arch/s390/kernel/syscall.c

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,33 +38,6 @@
3838

3939
#include "entry.h"
4040

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-
6841
#ifdef CONFIG_SYSVIPC
6942
/*
7043
* sys_ipc() is the de-multiplexer for the SysV IPC calls.

0 commit comments

Comments
 (0)