lkml.org 
[lkml]   [2006]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.6.18-rc2-git7 build error with CONFIG_STACK_UNWIND enabled
Date
On Saturday 29 July 2006 16:26, Alexey Dobriyan wrote:
> 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@gmail.com>
>
> --- 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
>
>
I can confirm that this fixes the build error.
Thanks Alexey.

/ Jesper Juhl <jesper.juhl@gmail.com> /

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

\
 
 \ /
  Last update: 2006-07-29 16:39    [W:0.026 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site