diff options
Diffstat (limited to 'arch/tile/kernel/compat.c')
-rw-r--r-- | arch/tile/kernel/compat.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/tile/kernel/compat.c b/arch/tile/kernel/compat.c index b1e06d041555..bf5e9d70266c 100644 --- a/arch/tile/kernel/compat.c +++ b/arch/tile/kernel/compat.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/kdev_t.h> | 21 | #include <linux/kdev_t.h> |
22 | #include <linux/fs.h> | 22 | #include <linux/fs.h> |
23 | #include <linux/fcntl.h> | 23 | #include <linux/fcntl.h> |
24 | #include <linux/smp_lock.h> | ||
25 | #include <linux/uaccess.h> | 24 | #include <linux/uaccess.h> |
26 | #include <linux/signal.h> | 25 | #include <linux/signal.h> |
27 | #include <asm/syscalls.h> | 26 | #include <asm/syscalls.h> |
@@ -136,26 +135,21 @@ long tile_compat_sys_msgrcv(int msqid, | |||
136 | 135 | ||
137 | /* Provide the compat syscall number to call mapping. */ | 136 | /* Provide the compat syscall number to call mapping. */ |
138 | #undef __SYSCALL | 137 | #undef __SYSCALL |
139 | #define __SYSCALL(nr, call) [nr] = (compat_##call), | 138 | #define __SYSCALL(nr, call) [nr] = (call), |
140 | 139 | ||
141 | /* The generic versions of these don't work for Tile. */ | 140 | /* The generic versions of these don't work for Tile. */ |
142 | #define compat_sys_msgrcv tile_compat_sys_msgrcv | 141 | #define compat_sys_msgrcv tile_compat_sys_msgrcv |
143 | #define compat_sys_msgsnd tile_compat_sys_msgsnd | 142 | #define compat_sys_msgsnd tile_compat_sys_msgsnd |
144 | 143 | ||
145 | /* See comments in sys.c */ | 144 | /* See comments in sys.c */ |
146 | #define compat_sys_fadvise64 sys32_fadvise64 | ||
147 | #define compat_sys_fadvise64_64 sys32_fadvise64_64 | 145 | #define compat_sys_fadvise64_64 sys32_fadvise64_64 |
148 | #define compat_sys_readahead sys32_readahead | 146 | #define compat_sys_readahead sys32_readahead |
149 | #define compat_sys_sync_file_range compat_sys_sync_file_range2 | ||
150 | 147 | ||
151 | /* The native 64-bit "struct stat" matches the 32-bit "struct stat64". */ | 148 | /* Call the trampolines to manage pt_regs where necessary. */ |
152 | #define compat_sys_stat64 sys_newstat | 149 | #define compat_sys_execve _compat_sys_execve |
153 | #define compat_sys_lstat64 sys_newlstat | 150 | #define compat_sys_sigaltstack _compat_sys_sigaltstack |
154 | #define compat_sys_fstat64 sys_newfstat | 151 | #define compat_sys_rt_sigreturn _compat_sys_rt_sigreturn |
155 | #define compat_sys_fstatat64 sys_newfstatat | 152 | #define sys_clone _sys_clone |
156 | |||
157 | /* Pass full 64-bit values through ptrace. */ | ||
158 | #define compat_sys_ptrace tile_compat_sys_ptrace | ||
159 | 153 | ||
160 | /* | 154 | /* |
161 | * Note that we can't include <linux/unistd.h> here since the header | 155 | * Note that we can't include <linux/unistd.h> here since the header |