diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-04-02 01:16:17 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-04-02 01:16:17 -0800 |
| commit | d2d6a4f86bcbd81a2ed7776cc31ffa39e10749ef (patch) | |
| tree | fead0bc0604ddafba4441afdc5e734fa685ade09 /kernel/sys.c | |
| parent | 859094035bd1ea3e03c1a80a6992fd45acd3d7a8 (diff) | |
[PATCH] conditional system call cleanup
This version of sys_nfsservctl() fix hadn't made DaveM complain.
Diffstat (limited to 'kernel/sys.c')
| -rw-r--r-- | kernel/sys.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index fc8e5e4060a0..54f018e69bf5 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -173,6 +173,18 @@ asmlinkage long sys_ni_syscall(void) return -ENOSYS; } +/* + * "Conditional" syscalls + * + * What we want is __attribute__((weak,alias("sys_ni_syscall"))), + * but it doesn't work on sparc64, so we just do it by hand + */ +#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); + +cond_syscall(sys_nfsservctl) +cond_syscall(sys_quotactl) +cond_syscall(sys_acct) + static int proc_sel(struct task_struct *p, int which, int who) { if(p->pid) |
