[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0810161424080.14604@shark.he.net>
Date: Thu, 16 Oct 2008 14:24:27 -0700 (PDT)
From: "Randy.Dunlap" <rdunlap@...otime.net>
To: Alex Chiang <achiang@...com>
cc: Adrian Bunk <bunk@...nel.org>, Tejun Heo <tj@...nel.org>,
jeff@...hat.com, linux-ide@...r.kernel.org,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] stop gcc warning about uninitialized 'dev' in
ata_scsi_scan_host
> > > I guess we don't want to sprinkle these around all over the place
> > > just to solve cosmetic issues, which makes sense, but is there
> > > some other approach we could take instead? Any suggestions? Or
> > > just live with it?
> >
> > We have an annotation for these kinds of warnings in the kernel.
>
> Oh, is it this?
>
> from linux/compiler-gcc3.h
> #define uninitialized_var(x) x = x
Yes, you got it.
--
~Randy
--
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