[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0901051649240.25066@gandalf.stny.rr.com>
Date: Mon, 5 Jan 2009 16:52:02 -0500 (EST)
From: Steven Rostedt <rostedt@...dmis.org>
To: Sam Ravnborg <sam@...nborg.org>
cc: LKML <linux-kernel@...r.kernel.org>,
Steven Rostedt <srostedt@...hat.com>,
Ingo Molnar <mingo@...e.hu>,
"David S. Miller" <davem@...emloft.net>,
sparclinux <sparclinux@...r.kernel.org>
Subject: Re: ftrace breaks sparc64 build
On Mon, 5 Jan 2009, Sam Ravnborg wrote:
> >
> > Probably the same issue. The problem is that the first use of a variable
> > is in the OR section of an if statement that does a return.
> >
> > if (x || !(y = init_me())
> > return;
> >
> > use_me(y);
> >
>
> More warnings:
> fs/partitions/check.c: In function `rescan_partitions':
> fs/partitions/check.c:511: warning: 'state' might be used uninitialized in this function
>
> => follow same pattern
>
> fs/compat_ioctl.c: In function `ppp_sock_fprog_ioctl_trans':
> fs/compat_ioctl.c:859: warning: 'fptr32' might be used uninitialized in this function
> fs/compat_ioctl.c: In function `do_fontx_ioctl':
> fs/compat_ioctl.c:1082: warning: 'data' might be used uninitialized in this function
> fs/compat_ioctl.c: In function `do_atmif_sioc':
> fs/compat_ioctl.c:1302: warning: 'data' might be used uninitialized in this function
> fs/compat_ioctl.c: In function `do_atm_ioctl':
> fs/compat_ioctl.c:1272: warning: 'data' might be used uninitialized in this function
> fs/compat_ioctl.c: In function `mtd_rw_oob':
> fs/compat_ioctl.c:1421: warning: 'data' might be used uninitialized in this function
> fs/compat_ioctl.c: In function `do_usbdevfs_discsignal':
> fs/compat_ioctl.c:1650: warning: 'uctx' might be used uninitialized in this function
>
> This is:
> if (get_user(flen, &u_fprog32->len) ||
> get_user(fptr32, &u_fprog32->filter))
> return -EFAULT;
Is this all sparc cross compiler? I'm trying to reproduce it on x86 with
no avail :-(
I would like to test other ways to change the macro, but to do so, I need
to get a compiler that will produce the warnings that you see. What
version of gcc are you using?
Thanks,
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists