Skip to content

Commit

Permalink
[ARM] always allow dump_stack() to produce a backtrace
Browse files Browse the repository at this point in the history
Don't make this dependent on CONFIG_DEBUG_KERNEL - if we hit a WARN_ON
we need the stack trace to work out how we got to that point.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Jul 5, 2007
1 parent 7b9c7b4 commit 082f47a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)

void dump_stack(void)
{
#ifdef CONFIG_DEBUG_ERRORS
__backtrace();
#endif
}

EXPORT_SYMBOL(dump_stack);
Expand Down

0 comments on commit 082f47a

Please sign in to comment.