diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2008-07-24 00:28:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:24 -0400 |
commit | 99764fa4ceeecba8b9e0a8a5565b418a2e94f83b (patch) | |
tree | aecf842728e5dfc80743662d87c089b24896f8ed /arch/um/include | |
parent | 4a5675820436e4ad738dd442c1cc8a165101509b (diff) |
UML: make several more things static
- Make some variables and functions static, since they don't need to be
global.
- Remove an unused function - arch/um/kernel/time.c::sched_clock().
- Clean the style a bit as complained by checkpatch.pl.
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r-- | arch/um/include/skas/skas.h | 1 | ||||
-rw-r--r-- | arch/um/include/um_uaccess.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/arch/um/include/skas/skas.h b/arch/um/include/skas/skas.h index b073f8a86bd3..64d2c7443306 100644 --- a/arch/um/include/skas/skas.h +++ b/arch/um/include/skas/skas.h | |||
@@ -16,7 +16,6 @@ extern int user_thread(unsigned long stack, int flags); | |||
16 | extern void new_thread_handler(void); | 16 | extern void new_thread_handler(void); |
17 | extern void handle_syscall(struct uml_pt_regs *regs); | 17 | extern void handle_syscall(struct uml_pt_regs *regs); |
18 | extern int new_mm(unsigned long stack); | 18 | extern int new_mm(unsigned long stack); |
19 | extern void get_skas_faultinfo(int pid, struct faultinfo * fi); | ||
20 | extern long execute_syscall_skas(void *r); | 19 | extern long execute_syscall_skas(void *r); |
21 | extern unsigned long current_stub_stack(void); | 20 | extern unsigned long current_stub_stack(void); |
22 | 21 | ||
diff --git a/arch/um/include/um_uaccess.h b/arch/um/include/um_uaccess.h index 2b6fc8e0f071..45c04999d670 100644 --- a/arch/um/include/um_uaccess.h +++ b/arch/um/include/um_uaccess.h | |||
@@ -34,7 +34,6 @@ extern int copy_to_user(void __user *to, const void *from, int n); | |||
34 | 34 | ||
35 | extern int __do_copy_to_user(void *to, const void *from, int n, | 35 | extern int __do_copy_to_user(void *to, const void *from, int n, |
36 | void **fault_addr, jmp_buf **fault_catcher); | 36 | void **fault_addr, jmp_buf **fault_catcher); |
37 | extern void __do_copy(void *to, const void *from, int n); | ||
38 | 37 | ||
39 | /* | 38 | /* |
40 | * strncpy_from_user: - Copy a NUL terminated string from userspace. | 39 | * strncpy_from_user: - Copy a NUL terminated string from userspace. |