[U-Boot] [PATCH 3/3] NAND FSL elbc: Use virt_to_phys to determine which bank is in use

Kumar Gala galak at kernel.crashing.org
Mon Nov 24 17:36:55 CET 2008


On Nov 24, 2008, at 10:34 AM, Scott Wood wrote:

> Kumar Gala wrote:
>> diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/ 
>> fsl_elbc_nand.c
>> index 367c7d7..3f318e0 100644
>> --- a/drivers/mtd/nand/fsl_elbc_nand.c
>> +++ b/drivers/mtd/nand/fsl_elbc_nand.c
>> @@ -718,7 +718,7 @@ static void fsl_elbc_ctrl_init(void)
>> int board_nand_init(struct nand_chip *nand)
>> {
>> 	struct fsl_elbc_mtd *priv;
>> -	uint32_t br, or;
>> +	uint32_t br = 0, or = 0;
>
> Which GCC version complains about this?  Seems like it's getting  
> worse about false positives.

Yeah, I was annoyed by this.  gcc-4.3

- k


More information about the U-Boot mailing list