Messages in this thread |  | | | Date | Fri, 30 Mar 2007 21:40:11 +0200 | | From | Adrian Bunk <> | | Subject | Re: fs/block_dev.c:953: warning: 'found' might be used uninitialized in this function |
| |
On Wed, Mar 28, 2007 at 12:56:59PM -0400, Lee Revell wrote: > On 3/28/07, Toralf Förster <toralf.foerster@gmx.de> wrote: > >I compiled current git source 2.6.21-rc5-g28defbe and got this warning: > >... > >fs/block_dev.c: In function `bd_claim_by_kobject': > >fs/block_dev.c:953: warning: 'found' might be used uninitialized in this > >function > >... > > > > Most of these warnings are really GCC bugs. Please examine the code > in question.
The word "GCC bugs" is a bit hard for them.
gcc gives different warnings for code where it could prove that a variable gets used uninitialized and code where it's not sure whether a variable will always be used initialized.
There are even cases where it's technically impossible for gcc to determine that a variable always gets initialized.
And these "might be used uninitialized" warnings have already found several kernel bugs.
> Lee
cu Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |