Subject: [PATCH] fix xmon print_bug_trap compile error

From: Olaf Hering <[email-masked]>
Date: Thu, 22 Mar 2007 23:11:17 +0100

These 2 members of struct bug_entry are inside CONFIG_DEBUG_BUGVERBOSE

arch/powerpc/xmon/xmon.c:1364: error: 'const struct bug_entry' has no member named 'file'
arch/powerpc/xmon/xmon.c:1364: error: 'const struct bug_entry' has no member named 'line'

Signed-off-by: Olaf Hering <[email-masked]>

---
 arch/powerpc/xmon/xmon.c |    2 ++
 1 file changed, 2 insertions(+)

Index: b/arch/powerpc/xmon/xmon.c
===================================================================
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1360,8 +1360,10 @@ static void print_bug_trap(struct pt_reg
 	if (is_warning_bug(bug))
 		return;
 
+#ifdef CONFIG_DEBUG_BUGVERBOSE
 	printf("kernel BUG at %s:%u!\n",
 	       bug->file, bug->line);
+#endif
 }
 
 void excprint(struct pt_regs *fp)