[U-Boot] building breakage for xpedite5xxx boards

Not sure what broke it:
[galak@right u-boot-85xx]$ cat LOG/xpedite520x.ERR cfi_flash.c: In function 'flash_protect_default': cfi_flash.c:2118:7: error: 'i' undeclared (first use in this function) cfi_flash.c:2118:7: note: each undeclared identifier is reported only once for each function it appears in cfi_flash.c:2118:26: error: 'apl' undeclared (first use in this function) cfi_flash.c:2118:40: error: invalid application of 'sizeof' to incomplete type 'struct apl_s' cfi_flash.c: In function 'flash_init': cfi_flash.c:2137:4: warning: unused variable 'apl' make[1]: *** [cfi_flash.o] Error 1 make: *** [drivers/mtd/libmtd.o] Error 2 make: *** Waiting for unfinished jobs.... make: *** wait: No child processes. Stop.
- k

On Wed, Apr 13, 2011 at 10:08 AM, Kumar Gala galak@kernel.crashing.org wrote:
Not sure what broke it:
[galak@right u-boot-85xx]$ cat LOG/xpedite520x.ERR cfi_flash.c: In function 'flash_protect_default': cfi_flash.c:2118:7: error: 'i' undeclared (first use in this function) cfi_flash.c:2118:7: note: each undeclared identifier is reported only once for each function it appears in cfi_flash.c:2118:26: error: 'apl' undeclared (first use in this function) cfi_flash.c:2118:40: error: invalid application of 'sizeof' to incomplete type 'struct apl_s' cfi_flash.c: In function 'flash_init': cfi_flash.c:2137:4: warning: unused variable 'apl' make[1]: *** [cfi_flash.o] Error 1 make: *** [drivers/mtd/libmtd.o] Error 2 make: *** Waiting for unfinished jobs.... make: *** wait: No child processes. Stop.
I ran into this last night and just saw the fix, so I've sent a patch. It fixes the build error, though I don't know if anything else might be broken.
Andy
participants (2)
-
Andy Fleming
-
Kumar Gala