mirror of https://gitee.com/openkylin/linux.git
um: Remove unused variables
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
9daeaa3705
commit
54ce9256ad
|
@ -48,10 +48,6 @@ __initcall(init_syscall_regs);
|
|||
|
||||
extern int proc_mm;
|
||||
|
||||
int single_count = 0;
|
||||
int multi_count = 0;
|
||||
int multi_op_count = 0;
|
||||
|
||||
static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr)
|
||||
{
|
||||
int n, i;
|
||||
|
@ -64,8 +60,6 @@ static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr)
|
|||
/* FIXME: Need to look up userspace_pid by cpu */
|
||||
pid = userspace_pid[0];
|
||||
|
||||
multi_count++;
|
||||
|
||||
n = ptrace_setregs(pid, syscall_regs);
|
||||
if (n < 0) {
|
||||
printk(UM_KERN_ERR "Registers - \n");
|
||||
|
@ -126,9 +120,6 @@ long run_syscall_stub(struct mm_id * mm_idp, int syscall,
|
|||
{
|
||||
unsigned long *stack = check_init_stack(mm_idp, *addr);
|
||||
|
||||
if (done && *addr == NULL)
|
||||
single_count++;
|
||||
|
||||
*stack += sizeof(long);
|
||||
stack += *stack / sizeof(long);
|
||||
|
||||
|
@ -141,7 +132,6 @@ long run_syscall_stub(struct mm_id * mm_idp, int syscall,
|
|||
*stack++ = args[5];
|
||||
*stack++ = expected;
|
||||
*stack = 0;
|
||||
multi_op_count++;
|
||||
|
||||
if (!done && ((((unsigned long) stack) & ~UM_KERN_PAGE_MASK) <
|
||||
UM_KERN_PAGE_SIZE - 10 * sizeof(long))) {
|
||||
|
|
Loading…
Reference in New Issue