Skip to content

Commit fac0779

Browse files
akpm00Russell King
authored andcommitted
[ARM] stacktrace fix
ab1b6f0 said - remove the unused task argument to save_stack_trace, it's always current then broke arm: arch/arm/kernel/stacktrace.c:56: error: conflicting types for 'save_stack_trace' include/linux/stacktrace.h:11: error: previous declaration of 'save_stack_trace' was here arch/arm/kernel/stacktrace.c:56: error: conflicting types for 'save_stack_trace' include/linux/stacktrace.h:11: error: previous declaration of 'save_stack_trace' was here Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 030f481 commit fac0779

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

‎arch/arm/kernel/stacktrace.c‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,15 @@ static int save_trace(struct stackframe *frame, void *d)
5252
return trace->nr_entries >= trace->max_entries;
5353
}
5454

55-
void save_stack_trace(struct stack_trace *trace, struct task_struct *task)
55+
void save_stack_trace(struct stack_trace *trace)
5656
{
5757
struct stack_trace_data data;
5858
unsigned long fp, base;
5959

6060
data.trace = trace;
6161
data.skip = trace->skip;
62-
63-
if (task) {
64-
base = (unsigned long)task_stack_page(task);
65-
fp = 0; /* FIXME */
66-
} else {
67-
base = (unsigned long)task_stack_page(current);
68-
asm("mov %0, fp" : "=r" (fp));
69-
}
62+
base = (unsigned long)task_stack_page(current);
63+
asm("mov %0, fp" : "=r" (fp));
7064

7165
walk_stackframe(fp, base, base + THREAD_SIZE, save_trace, &data);
7266
}

0 commit comments

Comments
 (0)