diff options
author | David S. Miller <davem@davemloft.net> | 2008-03-26 04:43:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-26 04:43:29 -0400 |
commit | 207ddd0a3a42e6273e3a26447b52e9d6d90d579d (patch) | |
tree | eaff7cd129837826e1df0e78bb5f508aa25965b2 /arch/sparc64/kernel/systbls.h | |
parent | cf3d7c1ef418863376d556c48c214cb828623584 (diff) |
[SPARC64]: Fix most sparse warnings in arch/sparc64/kernel/sys_sparc.c
Sparse still doesn't like the funny cast we make from a scalar to a
"union semun" (which is correct by the C language and in particular
works with the sparc64 calling conventions, but sparse doesn't grok
that yet).
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/systbls.h')
-rw-r--r-- | arch/sparc64/kernel/systbls.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/systbls.h b/arch/sparc64/kernel/systbls.h new file mode 100644 index 000000000000..3416182d1555 --- /dev/null +++ b/arch/sparc64/kernel/systbls.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef _SYSTBLS_H | ||
2 | #define _SYSTBLS_H | ||
3 | |||
4 | #include <linux/kernel.h> | ||
5 | #include <linux/types.h> | ||
6 | #include <asm/utrap.h> | ||
7 | |||
8 | extern asmlinkage unsigned long sys_getpagesize(void); | ||
9 | extern asmlinkage unsigned long sparc_brk(unsigned long brk); | ||
10 | extern asmlinkage long sparc_pipe(struct pt_regs *regs); | ||
11 | extern asmlinkage long sys_ipc(unsigned int call, int first, | ||
12 | unsigned long second, | ||
13 | unsigned long third, | ||
14 | void __user *ptr, long fifth); | ||
15 | extern asmlinkage long sparc64_newuname(struct new_utsname __user *name); | ||
16 | extern asmlinkage long sparc64_personality(unsigned long personality); | ||
17 | extern asmlinkage unsigned long sys_mmap(unsigned long addr, unsigned long len, | ||
18 | unsigned long prot, unsigned long flags, | ||
19 | unsigned long fd, unsigned long off); | ||
20 | extern asmlinkage long sys64_munmap(unsigned long addr, size_t len); | ||
21 | extern asmlinkage unsigned long sys64_mremap(unsigned long addr, | ||
22 | unsigned long old_len, | ||
23 | unsigned long new_len, | ||
24 | unsigned long flags, | ||
25 | unsigned long new_addr); | ||
26 | extern asmlinkage unsigned long c_sys_nis_syscall(struct pt_regs *regs); | ||
27 | extern asmlinkage long sys_getdomainname(char __user *name, int len); | ||
28 | extern asmlinkage long solaris_syscall(struct pt_regs *regs); | ||
29 | extern asmlinkage long sunos_syscall(struct pt_regs *regs); | ||
30 | extern asmlinkage long sys_utrap_install(utrap_entry_t type, | ||
31 | utrap_handler_t new_p, | ||
32 | utrap_handler_t new_d, | ||
33 | utrap_handler_t __user *old_p, | ||
34 | utrap_handler_t __user *old_d); | ||
35 | extern asmlinkage long sparc_memory_ordering(unsigned long model, | ||
36 | struct pt_regs *regs); | ||
37 | extern asmlinkage long sys_rt_sigaction(int sig, | ||
38 | const struct sigaction __user *act, | ||
39 | struct sigaction __user *oact, | ||
40 | void __user *restorer, | ||
41 | size_t sigsetsize); | ||
42 | extern asmlinkage long sys_perfctr(int opcode, unsigned long arg0, | ||
43 | unsigned long arg1, unsigned long arg2); | ||
44 | |||
45 | #endif /* _SYSTBLS_H */ | ||