Re: 2.6.18-rc2-git7 build error with CONFIG_STACK_UNWIND enabled

From: Alexey Dobriyan
Date: Sat Jul 29 2006 - 10:28:01 EST


On Sat, Jul 29, 2006 at 03:41:46PM +0200, Jesper Juhl wrote:
> With 2.6.18-rc2-git7 I get the following build error if I have
> CONFIG_STACK_UNWIND enabled :
>
> CC arch/i386/kernel/traps.o
> arch/i386/kernel/traps.c: In function `show_trace_log_lvl':
> arch/i386/kernel/traps.c:193: error: invalid type argument of `->'
> arch/i386/kernel/traps.c:196: error: invalid type argument of `->'
> arch/i386/kernel/traps.c:197: error: invalid type argument of `->'

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>

--- a/arch/i386/kernel/traps.c
+++ b/arch/i386/kernel/traps.c
@@ -190,11 +190,11 @@ static void show_trace_log_lvl(struct ta
if (unw_ret > 0 && !arch_unw_user_mode(&info)) {
#ifdef CONFIG_STACK_UNWIND
print_symbol("DWARF2 unwinder stuck at %s\n",
- UNW_PC(info.regs));
+ UNW_PC(&info));
if (call_trace == 1) {
printk("Leftover inexact backtrace:\n");
- if (UNW_SP(info.regs))
- stack = (void *)UNW_SP(info.regs);
+ if (UNW_SP(&info))
+ stack = (void *)UNW_SP(&info);
} else if (call_trace > 1)
return;
else

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/