aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2018-03-04 13:06:35 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2018-04-02 14:16:20 -0400
commit67a7acd3773a94df2e671601a288685485463cf9 (patch)
tree15d6157fedd6c804f42daa4337b7d1d67e4f8e2a
parent70dd4b3160798b647b7f30baf9fb6e8a5933d4e2 (diff)
kernel/sys_ni: remove {sys_,sys_compat} from cond_syscall definitions
This keeps it in line with the SYSCALL_DEFINEx() / COMPAT_SYSCALL_DEFINEx() calling convention. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r--Documentation/process/adding-syscalls.rst2
-rw-r--r--kernel/sys_ni.c433
2 files changed, 219 insertions, 216 deletions
diff --git a/Documentation/process/adding-syscalls.rst b/Documentation/process/adding-syscalls.rst
index 556613744556..314c8bf6f2a2 100644
--- a/Documentation/process/adding-syscalls.rst
+++ b/Documentation/process/adding-syscalls.rst
@@ -222,7 +222,7 @@ your new syscall number may get adjusted to resolve conflicts.
222The file ``kernel/sys_ni.c`` provides a fallback stub implementation of each 222The file ``kernel/sys_ni.c`` provides a fallback stub implementation of each
223system call, returning ``-ENOSYS``. Add your new system call here too:: 223system call, returning ``-ENOSYS``. Add your new system call here too::
224 224
225 cond_syscall(sys_xyzzy); 225 COND_SYSCALL(xyzzy);
226 226
227Your new kernel functionality, and the system call that controls it, should 227Your new kernel functionality, and the system call that controls it, should
228normally be optional, so add a ``CONFIG`` option (typically to 228normally be optional, so add a ``CONFIG`` option (typically to
diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c
index 0c1538f5a559..6cafc008f6db 100644
--- a/kernel/sys_ni.c
+++ b/kernel/sys_ni.c
@@ -17,53 +17,56 @@ asmlinkage long sys_ni_syscall(void)
17 return -ENOSYS; 17 return -ENOSYS;
18} 18}
19 19
20#define COND_SYSCALL(name) cond_syscall(sys_##name)
21#define COND_SYSCALL_COMPAT(name) cond_syscall(compat_sys_##name)
22
20/* 23/*
21 * This list is kept in the same order as include/uapi/asm-generic/unistd.h. 24 * This list is kept in the same order as include/uapi/asm-generic/unistd.h.
22 * Architecture specific entries go below, followed by deprecated or obsolete 25 * Architecture specific entries go below, followed by deprecated or obsolete
23 * system calls. 26 * system calls.
24 */ 27 */
25 28
26cond_syscall(sys_io_setup); 29COND_SYSCALL(io_setup);
27cond_syscall(compat_sys_io_setup); 30COND_SYSCALL_COMPAT(io_setup);
28cond_syscall(sys_io_destroy); 31COND_SYSCALL(io_destroy);
29cond_syscall(sys_io_submit); 32COND_SYSCALL(io_submit);
30cond_syscall(compat_sys_io_submit); 33COND_SYSCALL_COMPAT(io_submit);
31cond_syscall(sys_io_cancel); 34COND_SYSCALL(io_cancel);
32cond_syscall(sys_io_getevents); 35COND_SYSCALL(io_getevents);
33cond_syscall(compat_sys_io_getevents); 36COND_SYSCALL_COMPAT(io_getevents);
34 37
35/* fs/xattr.c */ 38/* fs/xattr.c */
36 39
37/* fs/dcache.c */ 40/* fs/dcache.c */
38 41
39/* fs/cookies.c */ 42/* fs/cookies.c */
40cond_syscall(sys_lookup_dcookie); 43COND_SYSCALL(lookup_dcookie);
41cond_syscall(compat_sys_lookup_dcookie); 44COND_SYSCALL_COMPAT(lookup_dcookie);
42 45
43/* fs/eventfd.c */ 46/* fs/eventfd.c */
44cond_syscall(sys_eventfd2); 47COND_SYSCALL(eventfd2);
45 48
46/* fs/eventfd.c */ 49/* fs/eventfd.c */
47cond_syscall(sys_epoll_create1); 50COND_SYSCALL(epoll_create1);
48cond_syscall(sys_epoll_ctl); 51COND_SYSCALL(epoll_ctl);
49cond_syscall(sys_epoll_pwait); 52COND_SYSCALL(epoll_pwait);
50cond_syscall(compat_sys_epoll_pwait); 53COND_SYSCALL_COMPAT(epoll_pwait);
51 54
52/* fs/fcntl.c */ 55/* fs/fcntl.c */
53 56
54/* fs/inotify_user.c */ 57/* fs/inotify_user.c */
55cond_syscall(sys_inotify_init1); 58COND_SYSCALL(inotify_init1);
56cond_syscall(sys_inotify_add_watch); 59COND_SYSCALL(inotify_add_watch);
57cond_syscall(sys_inotify_rm_watch); 60COND_SYSCALL(inotify_rm_watch);
58 61
59/* fs/ioctl.c */ 62/* fs/ioctl.c */
60 63
61/* fs/ioprio.c */ 64/* fs/ioprio.c */
62cond_syscall(sys_ioprio_set); 65COND_SYSCALL(ioprio_set);
63cond_syscall(sys_ioprio_get); 66COND_SYSCALL(ioprio_get);
64 67
65/* fs/locks.c */ 68/* fs/locks.c */
66cond_syscall(sys_flock); 69COND_SYSCALL(flock);
67 70
68/* fs/namei.c */ 71/* fs/namei.c */
69 72
@@ -76,7 +79,7 @@ cond_syscall(sys_flock);
76/* fs/pipe.c */ 79/* fs/pipe.c */
77 80
78/* fs/quota.c */ 81/* fs/quota.c */
79cond_syscall(sys_quotactl); 82COND_SYSCALL(quotactl);
80 83
81/* fs/readdir.c */ 84/* fs/readdir.c */
82 85
@@ -87,8 +90,8 @@ cond_syscall(sys_quotactl);
87/* fs/select.c */ 90/* fs/select.c */
88 91
89/* fs/signalfd.c */ 92/* fs/signalfd.c */
90cond_syscall(sys_signalfd4); 93COND_SYSCALL(signalfd4);
91cond_syscall(compat_sys_signalfd4); 94COND_SYSCALL_COMPAT(signalfd4);
92 95
93/* fs/splice.c */ 96/* fs/splice.c */
94 97
@@ -97,20 +100,20 @@ cond_syscall(compat_sys_signalfd4);
97/* fs/sync.c */ 100/* fs/sync.c */
98 101
99/* fs/timerfd.c */ 102/* fs/timerfd.c */
100cond_syscall(sys_timerfd_create); 103COND_SYSCALL(timerfd_create);
101cond_syscall(sys_timerfd_settime); 104COND_SYSCALL(timerfd_settime);
102cond_syscall(compat_sys_timerfd_settime); 105COND_SYSCALL_COMPAT(timerfd_settime);
103cond_syscall(sys_timerfd_gettime); 106COND_SYSCALL(timerfd_gettime);
104cond_syscall(compat_sys_timerfd_gettime); 107COND_SYSCALL_COMPAT(timerfd_gettime);
105 108
106/* fs/utimes.c */ 109/* fs/utimes.c */
107 110
108/* kernel/acct.c */ 111/* kernel/acct.c */
109cond_syscall(sys_acct); 112COND_SYSCALL(acct);
110 113
111/* kernel/capability.c */ 114/* kernel/capability.c */
112cond_syscall(sys_capget); 115COND_SYSCALL(capget);
113cond_syscall(sys_capset); 116COND_SYSCALL(capset);
114 117
115/* kernel/exec_domain.c */ 118/* kernel/exec_domain.c */
116 119
@@ -119,29 +122,29 @@ cond_syscall(sys_capset);
119/* kernel/fork.c */ 122/* kernel/fork.c */
120 123
121/* kernel/futex.c */ 124/* kernel/futex.c */
122cond_syscall(sys_futex); 125COND_SYSCALL(futex);
123cond_syscall(compat_sys_futex); 126COND_SYSCALL_COMPAT(futex);
124cond_syscall(sys_set_robust_list); 127COND_SYSCALL(set_robust_list);
125cond_syscall(compat_sys_set_robust_list); 128COND_SYSCALL_COMPAT(set_robust_list);
126cond_syscall(sys_get_robust_list); 129COND_SYSCALL(get_robust_list);
127cond_syscall(compat_sys_get_robust_list); 130COND_SYSCALL_COMPAT(get_robust_list);
128 131
129/* kernel/hrtimer.c */ 132/* kernel/hrtimer.c */
130 133
131/* kernel/itimer.c */ 134/* kernel/itimer.c */
132 135
133/* kernel/kexec.c */ 136/* kernel/kexec.c */
134cond_syscall(sys_kexec_load); 137COND_SYSCALL(kexec_load);
135cond_syscall(compat_sys_kexec_load); 138COND_SYSCALL_COMPAT(kexec_load);
136 139
137/* kernel/module.c */ 140/* kernel/module.c */
138cond_syscall(sys_init_module); 141COND_SYSCALL(init_module);
139cond_syscall(sys_delete_module); 142COND_SYSCALL(delete_module);
140 143
141/* kernel/posix-timers.c */ 144/* kernel/posix-timers.c */
142 145
143/* kernel/printk.c */ 146/* kernel/printk.c */
144cond_syscall(sys_syslog); 147COND_SYSCALL(syslog);
145 148
146/* kernel/ptrace.c */ 149/* kernel/ptrace.c */
147 150
@@ -150,176 +153,176 @@ cond_syscall(sys_syslog);
150/* kernel/signal.c */ 153/* kernel/signal.c */
151 154
152/* kernel/sys.c */ 155/* kernel/sys.c */
153cond_syscall(sys_setregid); 156COND_SYSCALL(setregid);
154cond_syscall(sys_setgid); 157COND_SYSCALL(setgid);
155cond_syscall(sys_setreuid); 158COND_SYSCALL(setreuid);
156cond_syscall(sys_setuid); 159COND_SYSCALL(setuid);
157cond_syscall(sys_setresuid); 160COND_SYSCALL(setresuid);
158cond_syscall(sys_getresuid); 161COND_SYSCALL(getresuid);
159cond_syscall(sys_setresgid); 162COND_SYSCALL(setresgid);
160cond_syscall(sys_getresgid); 163COND_SYSCALL(getresgid);
161cond_syscall(sys_setfsuid); 164COND_SYSCALL(setfsuid);
162cond_syscall(sys_setfsgid); 165COND_SYSCALL(setfsgid);
163cond_syscall(sys_setgroups); 166COND_SYSCALL(setgroups);
164cond_syscall(sys_getgroups); 167COND_SYSCALL(getgroups);
165 168
166/* kernel/time.c */ 169/* kernel/time.c */
167 170
168/* kernel/timer.c */ 171/* kernel/timer.c */
169 172
170/* ipc/mqueue.c */ 173/* ipc/mqueue.c */
171cond_syscall(sys_mq_open); 174COND_SYSCALL(mq_open);
172cond_syscall(compat_sys_mq_open); 175COND_SYSCALL_COMPAT(mq_open);
173cond_syscall(sys_mq_unlink); 176COND_SYSCALL(mq_unlink);
174cond_syscall(sys_mq_timedsend); 177COND_SYSCALL(mq_timedsend);
175cond_syscall(compat_sys_mq_timedsend); 178COND_SYSCALL_COMPAT(mq_timedsend);
176cond_syscall(sys_mq_timedreceive); 179COND_SYSCALL(mq_timedreceive);
177cond_syscall(compat_sys_mq_timedreceive); 180COND_SYSCALL_COMPAT(mq_timedreceive);
178cond_syscall(sys_mq_notify); 181COND_SYSCALL(mq_notify);
179cond_syscall(compat_sys_mq_notify); 182COND_SYSCALL_COMPAT(mq_notify);
180cond_syscall(sys_mq_getsetattr); 183COND_SYSCALL(mq_getsetattr);
181cond_syscall(compat_sys_mq_getsetattr); 184COND_SYSCALL_COMPAT(mq_getsetattr);
182 185
183/* ipc/msg.c */ 186/* ipc/msg.c */
184cond_syscall(sys_msgget); 187COND_SYSCALL(msgget);
185cond_syscall(sys_msgctl); 188COND_SYSCALL(msgctl);
186cond_syscall(compat_sys_msgctl); 189COND_SYSCALL_COMPAT(msgctl);
187cond_syscall(sys_msgrcv); 190COND_SYSCALL(msgrcv);
188cond_syscall(compat_sys_msgrcv); 191COND_SYSCALL_COMPAT(msgrcv);
189cond_syscall(sys_msgsnd); 192COND_SYSCALL(msgsnd);
190cond_syscall(compat_sys_msgsnd); 193COND_SYSCALL_COMPAT(msgsnd);
191 194
192/* ipc/sem.c */ 195/* ipc/sem.c */
193cond_syscall(sys_semget); 196COND_SYSCALL(semget);
194cond_syscall(sys_semctl); 197COND_SYSCALL(semctl);
195cond_syscall(compat_sys_semctl); 198COND_SYSCALL_COMPAT(semctl);
196cond_syscall(sys_semtimedop); 199COND_SYSCALL(semtimedop);
197cond_syscall(compat_sys_semtimedop); 200COND_SYSCALL_COMPAT(semtimedop);
198cond_syscall(sys_semop); 201COND_SYSCALL(semop);
199 202
200/* ipc/shm.c */ 203/* ipc/shm.c */
201cond_syscall(sys_shmget); 204COND_SYSCALL(shmget);
202cond_syscall(sys_shmctl); 205COND_SYSCALL(shmctl);
203cond_syscall(compat_sys_shmctl); 206COND_SYSCALL_COMPAT(shmctl);
204cond_syscall(sys_shmat); 207COND_SYSCALL(shmat);
205cond_syscall(compat_sys_shmat); 208COND_SYSCALL_COMPAT(shmat);
206cond_syscall(sys_shmdt); 209COND_SYSCALL(shmdt);
207 210
208/* net/socket.c */ 211/* net/socket.c */
209cond_syscall(sys_socket); 212COND_SYSCALL(socket);
210cond_syscall(sys_socketpair); 213COND_SYSCALL(socketpair);
211cond_syscall(sys_bind); 214COND_SYSCALL(bind);
212cond_syscall(sys_listen); 215COND_SYSCALL(listen);
213cond_syscall(sys_accept); 216COND_SYSCALL(accept);
214cond_syscall(sys_connect); 217COND_SYSCALL(connect);
215cond_syscall(sys_getsockname); 218COND_SYSCALL(getsockname);
216cond_syscall(sys_getpeername); 219COND_SYSCALL(getpeername);
217cond_syscall(sys_setsockopt); 220COND_SYSCALL(setsockopt);
218cond_syscall(compat_sys_setsockopt); 221COND_SYSCALL_COMPAT(setsockopt);
219cond_syscall(sys_getsockopt); 222COND_SYSCALL(getsockopt);
220cond_syscall(compat_sys_getsockopt); 223COND_SYSCALL_COMPAT(getsockopt);
221cond_syscall(sys_sendto); 224COND_SYSCALL(sendto);
222cond_syscall(sys_shutdown); 225COND_SYSCALL(shutdown);
223cond_syscall(sys_recvfrom); 226COND_SYSCALL(recvfrom);
224cond_syscall(compat_sys_recvfrom); 227COND_SYSCALL_COMPAT(recvfrom);
225cond_syscall(sys_sendmsg); 228COND_SYSCALL(sendmsg);
226cond_syscall(compat_sys_sendmsg); 229COND_SYSCALL_COMPAT(sendmsg);
227cond_syscall(sys_recvmsg); 230COND_SYSCALL(recvmsg);
228cond_syscall(compat_sys_recvmsg); 231COND_SYSCALL_COMPAT(recvmsg);
229 232
230/* mm/filemap.c */ 233/* mm/filemap.c */
231 234
232/* mm/nommu.c, also with MMU */ 235/* mm/nommu.c, also with MMU */
233cond_syscall(sys_mremap); 236COND_SYSCALL(mremap);
234 237
235/* security/keys/keyctl.c */ 238/* security/keys/keyctl.c */
236cond_syscall(sys_add_key); 239COND_SYSCALL(add_key);
237cond_syscall(sys_request_key); 240COND_SYSCALL(request_key);
238cond_syscall(sys_keyctl); 241COND_SYSCALL(keyctl);
239cond_syscall(compat_sys_keyctl); 242COND_SYSCALL_COMPAT(keyctl);
240 243
241/* arch/example/kernel/sys_example.c */ 244/* arch/example/kernel/sys_example.c */
242 245
243/* mm/fadvise.c */ 246/* mm/fadvise.c */
244cond_syscall(sys_fadvise64_64); 247COND_SYSCALL(fadvise64_64);
245 248
246/* mm/, CONFIG_MMU only */ 249/* mm/, CONFIG_MMU only */
247cond_syscall(sys_swapon); 250COND_SYSCALL(swapon);
248cond_syscall(sys_swapoff); 251COND_SYSCALL(swapoff);
249cond_syscall(sys_mprotect); 252COND_SYSCALL(mprotect);
250cond_syscall(sys_msync); 253COND_SYSCALL(msync);
251cond_syscall(sys_mlock); 254COND_SYSCALL(mlock);
252cond_syscall(sys_munlock); 255COND_SYSCALL(munlock);
253cond_syscall(sys_mlockall); 256COND_SYSCALL(mlockall);
254cond_syscall(sys_munlockall); 257COND_SYSCALL(munlockall);
255cond_syscall(sys_mincore); 258COND_SYSCALL(mincore);
256cond_syscall(sys_madvise); 259COND_SYSCALL(madvise);
257cond_syscall(sys_remap_file_pages); 260COND_SYSCALL(remap_file_pages);
258cond_syscall(sys_mbind); 261COND_SYSCALL(mbind);
259cond_syscall(compat_sys_mbind); 262COND_SYSCALL_COMPAT(mbind);
260cond_syscall(sys_get_mempolicy); 263COND_SYSCALL(get_mempolicy);
261cond_syscall(compat_sys_get_mempolicy); 264COND_SYSCALL_COMPAT(get_mempolicy);
262cond_syscall(sys_set_mempolicy); 265COND_SYSCALL(set_mempolicy);
263cond_syscall(compat_sys_set_mempolicy); 266COND_SYSCALL_COMPAT(set_mempolicy);
264cond_syscall(sys_migrate_pages); 267COND_SYSCALL(migrate_pages);
265cond_syscall(compat_sys_migrate_pages); 268COND_SYSCALL_COMPAT(migrate_pages);
266cond_syscall(sys_move_pages); 269COND_SYSCALL(move_pages);
267cond_syscall(compat_sys_move_pages); 270COND_SYSCALL_COMPAT(move_pages);
268 271
269cond_syscall(sys_perf_event_open); 272COND_SYSCALL(perf_event_open);
270cond_syscall(sys_accept4); 273COND_SYSCALL(accept4);
271cond_syscall(sys_recvmmsg); 274COND_SYSCALL(recvmmsg);
272cond_syscall(compat_sys_recvmmsg); 275COND_SYSCALL_COMPAT(recvmmsg);
273 276
274/* 277/*
275 * Architecture specific syscalls: see further below 278 * Architecture specific syscalls: see further below
276 */ 279 */
277 280
278/* fanotify */ 281/* fanotify */
279cond_syscall(sys_fanotify_init); 282COND_SYSCALL(fanotify_init);
280cond_syscall(sys_fanotify_mark); 283COND_SYSCALL(fanotify_mark);
281 284
282/* open by handle */ 285/* open by handle */
283cond_syscall(sys_name_to_handle_at); 286COND_SYSCALL(name_to_handle_at);
284cond_syscall(sys_open_by_handle_at); 287COND_SYSCALL(open_by_handle_at);
285cond_syscall(compat_sys_open_by_handle_at); 288COND_SYSCALL_COMPAT(open_by_handle_at);
286 289
287cond_syscall(sys_sendmmsg); 290COND_SYSCALL(sendmmsg);
288cond_syscall(compat_sys_sendmmsg); 291COND_SYSCALL_COMPAT(sendmmsg);
289cond_syscall(sys_process_vm_readv); 292COND_SYSCALL(process_vm_readv);
290cond_syscall(compat_sys_process_vm_readv); 293COND_SYSCALL_COMPAT(process_vm_readv);
291cond_syscall(sys_process_vm_writev); 294COND_SYSCALL(process_vm_writev);
292cond_syscall(compat_sys_process_vm_writev); 295COND_SYSCALL_COMPAT(process_vm_writev);
293 296
294/* compare kernel pointers */ 297/* compare kernel pointers */
295cond_syscall(sys_kcmp); 298COND_SYSCALL(kcmp);
296 299
297cond_syscall(sys_finit_module); 300COND_SYSCALL(finit_module);
298 301
299/* operate on Secure Computing state */ 302/* operate on Secure Computing state */
300cond_syscall(sys_seccomp); 303COND_SYSCALL(seccomp);
301 304
302cond_syscall(sys_memfd_create); 305COND_SYSCALL(memfd_create);
303 306
304/* access BPF programs and maps */ 307/* access BPF programs and maps */
305cond_syscall(sys_bpf); 308COND_SYSCALL(bpf);
306 309
307/* execveat */ 310/* execveat */
308cond_syscall(sys_execveat); 311COND_SYSCALL(execveat);
309 312
310cond_syscall(sys_userfaultfd); 313COND_SYSCALL(userfaultfd);
311 314
312/* membarrier */ 315/* membarrier */
313cond_syscall(sys_membarrier); 316COND_SYSCALL(membarrier);
314 317
315cond_syscall(sys_mlock2); 318COND_SYSCALL(mlock2);
316 319
317cond_syscall(sys_copy_file_range); 320COND_SYSCALL(copy_file_range);
318 321
319/* memory protection keys */ 322/* memory protection keys */
320cond_syscall(sys_pkey_mprotect); 323COND_SYSCALL(pkey_mprotect);
321cond_syscall(sys_pkey_alloc); 324COND_SYSCALL(pkey_alloc);
322cond_syscall(sys_pkey_free); 325COND_SYSCALL(pkey_free);
323 326
324 327
325/* 328/*
@@ -327,35 +330,35 @@ cond_syscall(sys_pkey_free);
327 */ 330 */
328 331
329/* pciconfig: alpha, arm, arm64, ia64, sparc */ 332/* pciconfig: alpha, arm, arm64, ia64, sparc */
330cond_syscall(sys_pciconfig_read); 333COND_SYSCALL(pciconfig_read);
331cond_syscall(sys_pciconfig_write); 334COND_SYSCALL(pciconfig_write);
332cond_syscall(sys_pciconfig_iobase); 335COND_SYSCALL(pciconfig_iobase);
333 336
334/* sys_socketcall: arm, mips, x86, ... */ 337/* sys_socketcall: arm, mips, x86, ... */
335cond_syscall(sys_socketcall); 338COND_SYSCALL(socketcall);
336cond_syscall(compat_sys_socketcall); 339COND_SYSCALL_COMPAT(socketcall);
337 340
338/* compat syscalls for arm64, x86, ... */ 341/* compat syscalls for arm64, x86, ... */
339cond_syscall(compat_sys_sysctl); 342COND_SYSCALL_COMPAT(sysctl);
340cond_syscall(compat_sys_fanotify_mark); 343COND_SYSCALL_COMPAT(fanotify_mark);
341 344
342/* x86 */ 345/* x86 */
343cond_syscall(sys_vm86old); 346COND_SYSCALL(vm86old);
344cond_syscall(sys_modify_ldt); 347COND_SYSCALL(modify_ldt);
345cond_syscall(compat_sys_quotactl32); 348COND_SYSCALL_COMPAT(quotactl32);
346cond_syscall(sys_vm86); 349COND_SYSCALL(vm86);
347cond_syscall(sys_kexec_file_load); 350COND_SYSCALL(kexec_file_load);
348 351
349/* s390 */ 352/* s390 */
350cond_syscall(sys_s390_pci_mmio_read); 353COND_SYSCALL(s390_pci_mmio_read);
351cond_syscall(sys_s390_pci_mmio_write); 354COND_SYSCALL(s390_pci_mmio_write);
352cond_syscall(compat_sys_s390_ipc); 355COND_SYSCALL_COMPAT(s390_ipc);
353 356
354/* powerpc */ 357/* powerpc */
355cond_syscall(ppc_rtas); 358cond_syscall(ppc_rtas);
356cond_syscall(sys_spu_run); 359COND_SYSCALL(spu_run);
357cond_syscall(sys_spu_create); 360COND_SYSCALL(spu_create);
358cond_syscall(sys_subpage_prot); 361COND_SYSCALL(subpage_prot);
359 362
360 363
361/* 364/*
@@ -364,22 +367,22 @@ cond_syscall(sys_subpage_prot);
364 */ 367 */
365 368
366/* __ARCH_WANT_SYSCALL_NO_FLAGS */ 369/* __ARCH_WANT_SYSCALL_NO_FLAGS */
367cond_syscall(sys_epoll_create); 370COND_SYSCALL(epoll_create);
368cond_syscall(sys_inotify_init); 371COND_SYSCALL(inotify_init);
369cond_syscall(sys_eventfd); 372COND_SYSCALL(eventfd);
370cond_syscall(sys_signalfd); 373COND_SYSCALL(signalfd);
371cond_syscall(compat_sys_signalfd); 374COND_SYSCALL_COMPAT(signalfd);
372 375
373/* __ARCH_WANT_SYSCALL_OFF_T */ 376/* __ARCH_WANT_SYSCALL_OFF_T */
374cond_syscall(sys_fadvise64); 377COND_SYSCALL(fadvise64);
375 378
376/* __ARCH_WANT_SYSCALL_DEPRECATED */ 379/* __ARCH_WANT_SYSCALL_DEPRECATED */
377cond_syscall(sys_epoll_wait); 380COND_SYSCALL(epoll_wait);
378cond_syscall(sys_recv); 381COND_SYSCALL(recv);
379cond_syscall(compat_sys_recv); 382COND_SYSCALL_COMPAT(recv);
380cond_syscall(sys_send); 383COND_SYSCALL(send);
381cond_syscall(sys_bdflush); 384COND_SYSCALL(bdflush);
382cond_syscall(sys_uselib); 385COND_SYSCALL(uselib);
383 386
384 387
385/* 388/*
@@ -387,33 +390,33 @@ cond_syscall(sys_uselib);
387 */ 390 */
388 391
389/* obsolete: SGETMASK_SYSCALL */ 392/* obsolete: SGETMASK_SYSCALL */
390cond_syscall(sys_sgetmask); 393COND_SYSCALL(sgetmask);
391cond_syscall(sys_ssetmask); 394COND_SYSCALL(ssetmask);
392 395
393/* obsolete: SYSFS_SYSCALL */ 396/* obsolete: SYSFS_SYSCALL */
394cond_syscall(sys_sysfs); 397COND_SYSCALL(sysfs);
395 398
396/* obsolete: __ARCH_WANT_SYS_IPC */ 399/* obsolete: __ARCH_WANT_SYS_IPC */
397cond_syscall(sys_ipc); 400COND_SYSCALL(ipc);
398cond_syscall(compat_sys_ipc); 401COND_SYSCALL_COMPAT(ipc);
399 402
400/* obsolete: UID16 */ 403/* obsolete: UID16 */
401cond_syscall(sys_chown16); 404COND_SYSCALL(chown16);
402cond_syscall(sys_fchown16); 405COND_SYSCALL(fchown16);
403cond_syscall(sys_getegid16); 406COND_SYSCALL(getegid16);
404cond_syscall(sys_geteuid16); 407COND_SYSCALL(geteuid16);
405cond_syscall(sys_getgid16); 408COND_SYSCALL(getgid16);
406cond_syscall(sys_getgroups16); 409COND_SYSCALL(getgroups16);
407cond_syscall(sys_getresgid16); 410COND_SYSCALL(getresgid16);
408cond_syscall(sys_getresuid16); 411COND_SYSCALL(getresuid16);
409cond_syscall(sys_getuid16); 412COND_SYSCALL(getuid16);
410cond_syscall(sys_lchown16); 413COND_SYSCALL(lchown16);
411cond_syscall(sys_setfsgid16); 414COND_SYSCALL(setfsgid16);
412cond_syscall(sys_setfsuid16); 415COND_SYSCALL(setfsuid16);
413cond_syscall(sys_setgid16); 416COND_SYSCALL(setgid16);
414cond_syscall(sys_setgroups16); 417COND_SYSCALL(setgroups16);
415cond_syscall(sys_setregid16); 418COND_SYSCALL(setregid16);
416cond_syscall(sys_setresgid16); 419COND_SYSCALL(setresgid16);
417cond_syscall(sys_setresuid16); 420COND_SYSCALL(setresuid16);
418cond_syscall(sys_setreuid16); 421COND_SYSCALL(setreuid16);
419cond_syscall(sys_setuid16); 422COND_SYSCALL(setuid16);