mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[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>
This commit is contained in:
parent
b42e1eacc1
commit
6d1b18b16f
2 changed files with 0 additions and 17 deletions
|
@ -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)
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue