diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-02-10 04:44:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:22 -0500 |
commit | 6d1b18b16fc917e5c9af568a53c7e37923821d70 (patch) | |
tree | 8873443d80e6e6d7167417ffe5432d952311839f /arch/um | |
parent | b42e1eacc1f245581a2f7580ec1082ff4d6c65cd (diff) |
[PATCH] uml: remove unused variable and function
syscall_index and next_syscall_index turn out not to be used.
Signed-off-by: Jeff Dike <jdike@addtoit.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')
-rw-r--r-- | arch/um/include/kern_util.h | 1 | ||||
-rw-r--r-- | arch/um/kernel/syscall.c | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h index cec9fcc57bf5..3368ef974379 100644 --- a/arch/um/include/kern_util.h +++ b/arch/um/include/kern_util.h | |||
@@ -61,7 +61,6 @@ extern int set_signals(int enable); | |||
61 | extern void force_sigbus(void); | 61 | extern void force_sigbus(void); |
62 | extern int pid_to_processor_id(int pid); | 62 | extern int pid_to_processor_id(int pid); |
63 | extern void deliver_signals(void *t); | 63 | extern void deliver_signals(void *t); |
64 | extern int next_syscall_index(int max); | ||
65 | extern int next_trap_index(int max); | 64 | extern int next_trap_index(int max); |
66 | extern void default_idle(void); | 65 | extern void default_idle(void); |
67 | extern void finish_fork(void); | 66 | extern void finish_fork(void); |
diff --git a/arch/um/kernel/syscall.c b/arch/um/kernel/syscall.c index f5ed8624648b..2828c5283227 100644 --- a/arch/um/kernel/syscall.c +++ b/arch/um/kernel/syscall.c | |||
@@ -149,22 +149,6 @@ long sys_olduname(struct oldold_utsname __user * name) | |||
149 | return error; | 149 | return error; |
150 | } | 150 | } |
151 | 151 | ||
152 | DEFINE_SPINLOCK(syscall_lock); | ||
153 | |||
154 | static int syscall_index = 0; | ||
155 | |||
156 | int next_syscall_index(int limit) | ||
157 | { | ||
158 | int ret; | ||
159 | |||
160 | spin_lock(&syscall_lock); | ||
161 | ret = syscall_index; | ||
162 | if(++syscall_index == limit) | ||
163 | syscall_index = 0; | ||
164 | spin_unlock(&syscall_lock); | ||
165 | return(ret); | ||
166 | } | ||
167 | |||
168 | int kernel_execve(const char *filename, char *const argv[], char *const envp[]) | 152 | int kernel_execve(const char *filename, char *const argv[], char *const envp[]) |
169 | { | 153 | { |
170 | mm_segment_t fs; | 154 | mm_segment_t fs; |