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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
> 
> --- 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 <[email protected]> /

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux