diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-05-06 17:51:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:13:02 -0400 |
commit | 6e21aec3fcf6c8862b755d45c0af45acdefff976 (patch) | |
tree | 1e2bcf6ae8ac4a6e62766cb1cddf073410d4ea5c /arch/um/include/tt/uaccess-tt.h | |
parent | 65a58ab044308ae65ca06c50fb10be5e0e080989 (diff) |
uml: tidy process.c
Clean up arch/um/kernel/process.c:
- lots of return(x); -> return x; conversions
- a number of the small functions are either unused, in which case they are
gone, along any declarations in a header, or could be made static.
- current_pid is ifdefed on CONFIG_MODE_TT and its declaration is ifdefed on
both CONFIG_MODE_TT and UML_CONFIG_MODE_TT because we don't know whether
it's being used in a userspace or kernel file.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include/tt/uaccess-tt.h')
-rw-r--r-- | arch/um/include/tt/uaccess-tt.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/um/include/tt/uaccess-tt.h b/arch/um/include/tt/uaccess-tt.h index b19645f32f24..13a64f61fcf4 100644 --- a/arch/um/include/tt/uaccess-tt.h +++ b/arch/um/include/tt/uaccess-tt.h | |||
@@ -27,8 +27,6 @@ extern unsigned long uml_physmem; | |||
27 | #define access_ok_tt(type, addr, size) \ | 27 | #define access_ok_tt(type, addr, size) \ |
28 | (is_stack(addr, size)) | 28 | (is_stack(addr, size)) |
29 | 29 | ||
30 | extern unsigned long get_fault_addr(void); | ||
31 | |||
32 | extern int __do_copy_from_user(void *to, const void *from, int n, | 30 | extern int __do_copy_from_user(void *to, const void *from, int n, |
33 | void **fault_addr, void **fault_catcher); | 31 | void **fault_addr, void **fault_catcher); |
34 | extern int __do_strncpy_from_user(char *dst, const char *src, size_t n, | 32 | extern int __do_strncpy_from_user(char *dst, const char *src, size_t n, |