Fix warnings from gcc-4.3.0 build on a ppc host
PATCH 1/1 Fix warnings from gcc-4.3.0 build on a ppc host
* The cfi_flash.c memset fix actual allows the board to boot so there is a bit more going on here than just resolving warnings associated with uninitialized variables.
* include/asm/bitops.h:302: warning: '__swab32p' is static but used in inline function 'ext2_find_next_zero_bit' which is not static
---
For 1.3.3.
- k
drivers/mtd/cfi_flash.c | 2 ++ include/asm-ppc/bitops.h | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)
drivers/mtd/cfi_flash.c +2 -0
@@ -1720,6 +1720,8 @@ ulong flash_get_size (ulong base, int banknum)int erase_region_count;struct cfi_qry qry; +memset (&qry,0 ,sizeof (qry)); + info->ext_addr =0 ; info->cfi_version =0 ;#ifdef CFG_FLASH_PROTECTION
include/asm-ppc/bitops.h +1 -1
@@ -287,7 +287,7 @@ extern __inline__ int ext2_test_bit(int nr, __const__ void * addr)#define ext2_find_first_zero_bit (addr, size) \ ext2_find_next_zero_bit((addr), (size), 0) -extern __inline__unsigned long ext2_find_next_zero_bit (void *addr, +static __inline__unsigned long ext2_find_next_zero_bit (void *addr,unsigned long size,unsigned long offset) {unsigned int *p = ((unsigned int *) addr) + (offset >>5 );
Signature · 1 line
1.5.4.5
Wolfgang Denk
AppliedPATCH 1/1 Fix warnings from gcc-4.3.0 build on a ppc host
Quoted 10 lines · In message <[email protected]> you wrote:
* The
cfi_flash.cmemset fix actual allows the board to boot so there is a bit more going on here than just resolving warnings associated with uninitialized variables.*
include/asm/bitops.h:302: warning: '__swab32p' is static but used in inline function 'ext2_find_next_zero_bit' which is not staticSigned-off-by Kumar Gala <[email protected]>---
Quoted 7 lines
For 1.3.3.
- k
drivers/mtd/cfi_flash.c | 2 ++ include/asm-ppc/bitops.h | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Lots of folks confuse bad management with destiny. -- Frank Hubbard