aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRakib Mullick <[email protected]>2011-01-07 16:59:49 +0100
committerFrederic Weisbecker <[email protected]>2011-01-07 16:59:49 +0100
commit39a6eebda253aa34d659ca9436e3c32ef60473f1 (patch)
tree193e0d113ec8b16e6d29cd53ae530d78eeafd83f
parentf2fd43954abc058586e95d4eb91e7a5477070704 (diff)
x86, dumpstack: Fix unused variable warning
In dump_stack function, bp isn't used anymore, which is introduced by commit 9c0729dc8062bed96189bd14ac6d4920f3958743. This patch removes bp completely. Signed-off-by: Rakib Mullick <[email protected]> Cc: Soeren Sandmann <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: H. Peter Anvin <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
-rw-r--r--arch/x86/kernel/dumpstack.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c
index 8474c998cbd4..d6fb146c0d8b 100644
--- a/arch/x86/kernel/dumpstack.c
+++ b/arch/x86/kernel/dumpstack.c
@@ -197,14 +197,8 @@ void show_stack(struct task_struct *task, unsigned long *sp)
*/
void dump_stack(void)
{
- unsigned long bp = 0;
unsigned long stack;
-#ifdef CONFIG_FRAME_POINTER
- if (!bp)
- get_bp(bp);
-#endif
-
printk("Pid: %d, comm: %.20s %s %s %.*s\n",
current->pid, current->comm, print_tainted(),
init_utsname()->release,