aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2012-04-13 09:37:57 -0400
committerRichard Weinberger <richard@nod.at>2012-05-21 15:09:32 -0400
commit54ce9256ad705ae8b628edfadce161aa7099922d (patch)
tree1bd2e4d49d9b2db9ce2862a3318210dedba69997 /arch/um
parent9daeaa370526df1c19eba4780247bb7155541e38 (diff)
um: Remove unused variables
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/os-Linux/skas/mem.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/um/os-Linux/skas/mem.c b/arch/um/os-Linux/skas/mem.c
index c0afff7af4bd..90b310d29179 100644
--- a/arch/um/os-Linux/skas/mem.c
+++ b/arch/um/os-Linux/skas/mem.c
@@ -48,10 +48,6 @@ __initcall(init_syscall_regs);
48 48
49extern int proc_mm; 49extern int proc_mm;
50 50
51int single_count = 0;
52int multi_count = 0;
53int multi_op_count = 0;
54
55static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr) 51static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr)
56{ 52{
57 int n, i; 53 int n, i;
@@ -64,8 +60,6 @@ static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr)
64 /* FIXME: Need to look up userspace_pid by cpu */ 60 /* FIXME: Need to look up userspace_pid by cpu */
65 pid = userspace_pid[0]; 61 pid = userspace_pid[0];
66 62
67 multi_count++;
68
69 n = ptrace_setregs(pid, syscall_regs); 63 n = ptrace_setregs(pid, syscall_regs);
70 if (n < 0) { 64 if (n < 0) {
71 printk(UM_KERN_ERR "Registers - \n"); 65 printk(UM_KERN_ERR "Registers - \n");
@@ -126,9 +120,6 @@ long run_syscall_stub(struct mm_id * mm_idp, int syscall,
126{ 120{
127 unsigned long *stack = check_init_stack(mm_idp, *addr); 121 unsigned long *stack = check_init_stack(mm_idp, *addr);
128 122
129 if (done && *addr == NULL)
130 single_count++;
131
132 *stack += sizeof(long); 123 *stack += sizeof(long);
133 stack += *stack / sizeof(long); 124 stack += *stack / sizeof(long);
134 125
@@ -141,7 +132,6 @@ long run_syscall_stub(struct mm_id * mm_idp, int syscall,
141 *stack++ = args[5]; 132 *stack++ = args[5];
142 *stack++ = expected; 133 *stack++ = expected;
143 *stack = 0; 134 *stack = 0;
144 multi_op_count++;
145 135
146 if (!done && ((((unsigned long) stack) & ~UM_KERN_PAGE_MASK) < 136 if (!done && ((((unsigned long) stack) & ~UM_KERN_PAGE_MASK) <
147 UM_KERN_PAGE_SIZE - 10 * sizeof(long))) { 137 UM_KERN_PAGE_SIZE - 10 * sizeof(long))) {