Re: [PATCH] x86, vsyscall: Fix build warning in vsyscall_64.c

From: Ingo Molnar
Date: Mon Jun 13 2011 - 05:30:00 EST



* Andrew Lutomirski <luto@xxxxxxx> wrote:

> On Sat, Jun 11, 2011 at 3:31 AM, Rakib Mullick <rakib.mullick@xxxxxxxxx> wrote:
> > Due to commit 5cec93c216db77 (x86-64: Emulate legacy vsyscalls), we get the following warning:
> >
> > Â arch/x86/kernel/vsyscall_64.c: In function âdo_emulate_vsyscallâ:
> > Â arch/x86/kernel/vsyscall_64.c:111:7: warning: âretâ may be used uninitialized in this function
>
> What's the code path that uses ret without initializing it?

If the code is correct but GCC got confused then please use the
simplest possible patch to help GCC find its way around the code.

Thanks,

Ingo
--
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/