aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/x86/include/asm/syscalls.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2018-03-11 11:34:38 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2018-04-02 20:16:12 +0200
commit66f4e88cc69da7d9ec4d68cf370cc69742d4af81 (patch)
tree9ba92c918c9aa2804e1413c82de7a4893a271fd3 /arch/x86/include/asm/syscalls.h
parentmm: add ksys_readahead() helper; remove in-kernel calls to sys_readahead() (diff)
downloadwireguard-linux-66f4e88cc69da7d9ec4d68cf370cc69742d4af81.tar.xz
wireguard-linux-66f4e88cc69da7d9ec4d68cf370cc69742d4af81.zip
x86/ioport: add ksys_ioperm() helper; remove in-kernel calls to sys_ioperm()
Using this helper allows us to avoid the in-kernel calls to the sys_ioperm() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_ioperm(). This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.GA17492@light.dominikbrodowski.net Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Slaby <jslaby@suse.com> Cc: x86@kernel.org Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'arch/x86/include/asm/syscalls.h')
-rw-r--r--arch/x86/include/asm/syscalls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/syscalls.h b/arch/x86/include/asm/syscalls.h
index bad25bb80679..1c0bebbd039e 100644
--- a/arch/x86/include/asm/syscalls.h
+++ b/arch/x86/include/asm/syscalls.h
@@ -17,6 +17,7 @@
/* Common in X86_32 and X86_64 */
/* kernel/ioport.c */
+long ksys_ioperm(unsigned long from, unsigned long num, int turn_on);
asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
asmlinkage long sys_iopl(unsigned int);