[PATCH] fix xmon print_bug_trap compile error

Olaf Hering olaf at aepfle.de
Fri Mar 23 09:11:17 EST 2007


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 <olaf at aepfle.de>

---
 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)



More information about the Linuxppc-dev mailing list