Re: [PATCH] stop gcc warning about uninitialized 'dev' inata_scsi_scan_host

From: Randy.Dunlap
Date: Thu Oct 16 2008 - 17:24:41 EST


> > > 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/