]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/um/tls_32.c
make SYSCALL_DEFINE<n>-generated wrappers do asmlinkage_protect
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / um / tls_32.c
index 5f5feff3d24cf967c9135b97226bf0f92ef1ae0d..80ffa5b9982dd68cfe5537a40c06d7b467bf665b 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <linux/percpu.h>
 #include <linux/sched.h>
+#include <linux/syscalls.h>
 #include <asm/uaccess.h>
 #include <os.h>
 #include <skas.h>
@@ -274,7 +275,7 @@ clear:
        goto out;
 }
 
-int sys_set_thread_area(struct user_desc __user *user_desc)
+SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, user_desc)
 {
        struct user_desc info;
        int idx, ret;
@@ -322,7 +323,7 @@ int ptrace_set_thread_area(struct task_struct *child, int idx,
        return set_tls_entry(child, &info, idx, 0);
 }
 
-int sys_get_thread_area(struct user_desc __user *user_desc)
+SYSCALL_DEFINE1(get_thread_area, struct user_desc __user *, user_desc)
 {
        struct user_desc info;
        int idx, ret;