Commit 6d1b18b1 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] uml: remove unused variable and function

syscall_index and next_syscall_index turn out not to be used.
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b42e1eac
...@@ -61,7 +61,6 @@ extern int set_signals(int enable); ...@@ -61,7 +61,6 @@ extern int set_signals(int enable);
extern void force_sigbus(void); extern void force_sigbus(void);
extern int pid_to_processor_id(int pid); extern int pid_to_processor_id(int pid);
extern void deliver_signals(void *t); extern void deliver_signals(void *t);
extern int next_syscall_index(int max);
extern int next_trap_index(int max); extern int next_trap_index(int max);
extern void default_idle(void); extern void default_idle(void);
extern void finish_fork(void); extern void finish_fork(void);
......
...@@ -149,22 +149,6 @@ long sys_olduname(struct oldold_utsname __user * name) ...@@ -149,22 +149,6 @@ long sys_olduname(struct oldold_utsname __user * name)
return error; return error;
} }
DEFINE_SPINLOCK(syscall_lock);
static int syscall_index = 0;
int next_syscall_index(int limit)
{
int ret;
spin_lock(&syscall_lock);
ret = syscall_index;
if(++syscall_index == limit)
syscall_index = 0;
spin_unlock(&syscall_lock);
return(ret);
}
int kernel_execve(const char *filename, char *const argv[], char *const envp[]) int kernel_execve(const char *filename, char *const argv[], char *const envp[])
{ {
mm_segment_t fs; mm_segment_t fs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment