public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86, dumpstack: Fix unused variable warning.
@ 2010-11-24  9:19 Rakib Mullick
  2010-11-24  9:57 ` Jesper Juhl
  2010-11-24 13:19 ` Frederic Weisbecker
  0 siblings, 2 replies; 12+ messages in thread
From: Rakib Mullick @ 2010-11-24  9:19 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Frederic Weisbecker, LKML, x86

With allnoconfig, bp becomes unused. So put bp into defination of
CONFIG_FRAME_POINTER.

arch/x86/kernel/dumpstack.c: In function ‘dump_stack’:
arch/x86/kernel/dumpstack.c:200: warning: unused variable ‘bp’

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
---

diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c
index 8474c99..fc5a253 100644
--- a/arch/x86/kernel/dumpstack.c
+++ b/arch/x86/kernel/dumpstack.c
@@ -197,10 +197,10 @@ 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
+	unsigned long bp = 0;
 	if (!bp)
 		get_bp(bp);
 #endif

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-01-08 12:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-24  9:19 [PATCH] x86, dumpstack: Fix unused variable warning Rakib Mullick
2010-11-24  9:57 ` Jesper Juhl
2010-11-24 10:26   ` Rakib Mullick
2010-11-24 13:01     ` Frederic Weisbecker
2010-11-24 13:53       ` Jesper Juhl
2010-11-25  5:36       ` Rakib Mullick
2010-11-25  4:07   ` Valdis.Kletnieks
2010-11-25  6:30     ` Frederic Weisbecker
2010-11-24 13:19 ` Frederic Weisbecker
2010-11-25  5:35   ` Rakib Mullick
2010-11-25  6:32     ` Frederic Weisbecker
2011-01-08 12:06     ` [tip:perf/urgent] " tip-bot for Rakib Mullick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox