Skip to content

Commit

Permalink
[PATCH] uml: remove unused variable and function
Browse files Browse the repository at this point in the history
syscall_index and next_syscall_index turn out not to be used.

Signed-off-by: Jeff Dike <[email protected]>
Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
cfd-36 authored and Linus Torvalds committed Feb 11, 2007
1 parent b42e1ea commit 6d1b18b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion arch/um/include/kern_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ extern int set_signals(int enable);
extern void force_sigbus(void);
extern int pid_to_processor_id(int pid);
extern void deliver_signals(void *t);
extern int next_syscall_index(int max);
extern int next_trap_index(int max);
extern void default_idle(void);
extern void finish_fork(void);
Expand Down
16 changes: 0 additions & 16 deletions arch/um/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,6 @@ long sys_olduname(struct oldold_utsname __user * name)
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[])
{
mm_segment_t fs;
Expand Down

0 comments on commit 6d1b18b

Please sign in to comment.