aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2018-03-22 17:46:57 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2018-04-02 20:16:15 +0200
commit1bec510a9ebf00baa1aa8751e4a5d88b54efb748 (patch)
tree0cca2a5d1c0818a2a5bda3a5fb1f97870c664f5f /include/linux/syscalls.h
parentx86/sigreturn: use SYSCALL_DEFINE0 (diff)
downloadlinux-dev-1bec510a9ebf00baa1aa8751e4a5d88b54efb748.tar.xz
linux-dev-1bec510a9ebf00baa1aa8751e4a5d88b54efb748.zip
kexec: move sys_kexec_load() prototype to syscalls.h
As the syscall function should only be called from the system call table but not from elsewhere in the kernel, move the prototype for sys_kexec_load() to include/syscall.h. Cc: Eric Biederman <ebiederm@xmission.com> Cc: kexec@lists.infradead.org Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to '')
-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 815fbdd9cca1..8330f046541e 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -936,6 +936,10 @@ asmlinkage long sys_pkey_mprotect(unsigned long start, size_t len,
unsigned long prot, int pkey);
asmlinkage long sys_pkey_alloc(unsigned long flags, unsigned long init_val);
asmlinkage long sys_pkey_free(int pkey);
+asmlinkage long sys_kexec_load(unsigned long entry,
+ unsigned long nr_segments,
+ struct kexec_segment __user *segments,
+ unsigned long flags);
asmlinkage long sys_statx(int dfd, const char __user *path, unsigned flags,
unsigned mask, struct statx __user *buffer);