summaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-01-16 08:15:20 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-01-18 03:33:18 -0500
commit58fa4a410fc31afe08d0d0c6b6d8860c22ec17c2 (patch)
tree77b202fac335c9b4e142360ccab85e75fcd6f05e /include/linux/syscalls.h
parent1ecff5ef0a70e7fd32a0b9cf6ad7ac8285462697 (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 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 257cccba3062..fb63045a0fb6 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -1185,6 +1185,10 @@ unsigned long ksys_mmap_pgoff(unsigned long addr, unsigned long len,
1185 unsigned long prot, unsigned long flags, 1185 unsigned long prot, unsigned long flags,
1186 unsigned long fd, unsigned long pgoff); 1186 unsigned long fd, unsigned long pgoff);
1187ssize_t ksys_readahead(int fd, loff_t offset, size_t count); 1187ssize_t ksys_readahead(int fd, loff_t offset, size_t count);
1188int ksys_ipc(unsigned int call, int first, unsigned long second,
1189 unsigned long third, void __user * ptr, long fifth);
1190int compat_ksys_ipc(u32 call, int first, int second,
1191 u32 third, u32 ptr, u32 fifth);
1188 1192
1189/* 1193/*
1190 * The following kernel syscall equivalents are just wrappers to fs-internal 1194 * The following kernel syscall equivalents are just wrappers to fs-internal