Skip to content

Commit 24465a4

Browse files
author
Al Viro
committed
take sys_fork/sys_vfork/sys_clone prototypes to linux/syscalls.h
now it can be done... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 1ea2a01 commit 24465a4

12 files changed

Lines changed: 11 additions & 63 deletions

File tree

‎arch/arm64/include/asm/syscalls.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ asmlinkage long sys_rt_sigreturn_wrapper(void);
2727
asmlinkage long sys_sigaltstack_wrapper(const stack_t __user *uss,
2828
stack_t __user *uoss);
2929

30-
/*
31-
* AArch64 sys_clone implementation has a different prototype than the generic
32-
* one (additional TLS value argument).
33-
*/
34-
asmlinkage long sys_clone(unsigned long, unsigned long, void __user *, int,
35-
void __user *);
36-
#define sys_clone sys_clone
37-
3830
#include <asm-generic/syscalls.h>
3931

4032
#endif /* __ASM_SYSCALLS_H */

‎arch/hexagon/include/asm/syscall.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ typedef long (*syscall_fn)(unsigned long, unsigned long,
2525
unsigned long, unsigned long,
2626
unsigned long, unsigned long);
2727

28-
asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
29-
unsigned long parent_tidp, unsigned long child_tidp);
30-
31-
#define sys_clone sys_clone
32-
3328
#include <asm-generic/syscalls.h>
3429

3530
extern void *sys_call_table[];

‎arch/microblaze/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ include include/asm-generic/Kbuild.asm
33
header-y += elf.h
44
generic-y += clkdev.h
55
generic-y += exec.h
6+
generic-y += syscalls.h

‎arch/microblaze/include/asm/syscalls.h‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎arch/s390/kernel/entry.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
5454
long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
5555
long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high,
5656
u32 len_low);
57-
long sys_fork(void);
58-
long sys_clone(unsigned long newsp, unsigned long clone_flags,
59-
int __user *parent_tidptr, int __user *child_tidptr);
60-
long sys_vfork(void);
6157
long sys_sigsuspend(int history0, int history1, old_sigset_t mask);
6258
long sys_sigaction(int sig, const struct old_sigaction __user *act,
6359
struct old_sigaction __user *oact);

‎arch/tile/include/asm/syscalls.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ long sys_ftruncate64(unsigned int fd, loff_t length);
6363
#endif
6464

6565
/* Provide versions of standard syscalls that use current_pt_regs(). */
66-
long sys_clone(unsigned long clone_flags, unsigned long newsp,
67-
void __user *parent_tid, void __user *child_tid);
6866
long sys_rt_sigreturn(void);
6967
long sys_sigaltstack(const stack_t __user *, stack_t __user *);
70-
#define sys_clone sys_clone
7168
#define sys_rt_sigreturn sys_rt_sigreturn
7269
#define sys_sigaltstack sys_sigaltstack
7370

‎arch/tile/kernel/compat.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ long compat_sys_sched_rr_get_interval(compat_pid_t pid,
104104

105105
/* Call the assembly trampolines where necessary. */
106106
#define compat_sys_rt_sigreturn _compat_sys_rt_sigreturn
107-
#undef sys_clone
108107
#define sys_clone _sys_clone
109108

110109
/*

‎arch/tile/kernel/sys.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
109109
/* Call the assembly trampolines where necessary. */
110110
#undef sys_rt_sigreturn
111111
#define sys_rt_sigreturn _sys_rt_sigreturn
112-
#undef sys_clone
113112
#define sys_clone _sys_clone
114113

115114
/*

‎arch/x86/include/asm/syscalls.h‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@
2020
asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
2121
long sys_iopl(unsigned int, struct pt_regs *);
2222

23-
/* kernel/process.c */
24-
asmlinkage long sys_fork(void);
25-
asmlinkage long sys_vfork(void);
26-
#ifdef CONFIG_CLONE_BACKWARDS
27-
asmlinkage long sys_clone(unsigned long, unsigned long, void __user *, int,
28-
void __user *);
29-
#else
30-
asmlinkage long sys_clone(unsigned long, unsigned long, void __user *,
31-
void __user *, int);
32-
#endif
33-
3423
/* kernel/ldt.c */
3524
asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
3625

‎arch/x86/um/shared/sysdep/syscalls.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern long sys_clone(unsigned long clone_flags, unsigned long newsp,
2-
void __user *parent_tid, void __user *child_tid);
31
#ifdef __i386__
42
#include "syscalls_32.h"
53
#else

0 commit comments

Comments
 (0)