diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-01-16 08:15:20 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2019-01-18 03:33:18 -0500 |
commit | 58fa4a410fc31afe08d0d0c6b6d8860c22ec17c2 (patch) | |
tree | 77b202fac335c9b4e142360ccab85e75fcd6f05e /arch/s390/kernel/sys_s390.c | |
parent | 1ecff5ef0a70e7fd32a0b9cf6ad7ac8285462697 (diff) |
ipc: introduce ksys_ipc()/compat_ksys_ipc() for s390
The sys_ipc() and compat_ksys_ipc() functions are meant to only
be used from the system call table, not called by another function.
Introduce ksys_*() interfaces for this purpose, as we have done
for many other system calls.
Link: https://lore.kernel.org/lkml/20190116131527.2071570-3-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
[heiko.carstens@de.ibm.com: compile fix for !CONFIG_COMPAT]
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/sys_s390.c')
-rw-r--r-- | arch/s390/kernel/sys_s390.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/kernel/sys_s390.c b/arch/s390/kernel/sys_s390.c index 560bdaf8a74f..fd0cbbed4d9f 100644 --- a/arch/s390/kernel/sys_s390.c +++ b/arch/s390/kernel/sys_s390.c | |||
@@ -58,6 +58,7 @@ out: | |||
58 | return error; | 58 | return error; |
59 | } | 59 | } |
60 | 60 | ||
61 | #ifdef CONFIG_SYSVIPC | ||
61 | /* | 62 | /* |
62 | * sys_ipc() is the de-multiplexer for the SysV IPC calls. | 63 | * sys_ipc() is the de-multiplexer for the SysV IPC calls. |
63 | */ | 64 | */ |
@@ -74,8 +75,9 @@ SYSCALL_DEFINE5(s390_ipc, uint, call, int, first, unsigned long, second, | |||
74 | * Therefore we can call the generic variant by simply passing the | 75 | * Therefore we can call the generic variant by simply passing the |
75 | * third parameter also as fifth parameter. | 76 | * third parameter also as fifth parameter. |
76 | */ | 77 | */ |
77 | return sys_ipc(call, first, second, third, ptr, third); | 78 | return ksys_ipc(call, first, second, third, ptr, third); |
78 | } | 79 | } |
80 | #endif /* CONFIG_SYSVIPC */ | ||
79 | 81 | ||
80 | SYSCALL_DEFINE1(s390_personality, unsigned int, personality) | 82 | SYSCALL_DEFINE1(s390_personality, unsigned int, personality) |
81 | { | 83 | { |