[PATCH 0/1] nand: fix compile warnings

Sanjeev Premi premi at ti.com
Fri Jan 7 00:12:59 EST 2011


The patch fixes these compiler warnings reported by
Cory Walker (cwalker32 at gmail.com):

  CC      drivers/mtd/nand/nand.o
drivers/mtd/nand/nand.c: In function 'nand_write':
drivers/mtd/nand/nand.c:73: warning: format '%08x' expects type
 'unsigned int', but argument 2 has type 'ulong'
  CC      drivers/mtd/nand/nand_ecc.o
  CC      drivers/mtd/nand/nand_ids.o
  CC      drivers/mtd/nand/nand_base.o
drivers/mtd/nand/nand_base.c: In function 'nand_select_chip':
drivers/mtd/nand/nand_base.c:170: warning: format '%s' expects t
ype 'char *', but argument 2 has type 'int'
drivers/mtd/nand/nand_base.c:170: warning: too few arguments for
 format

While fixing them, came across similar incompatible formats in
debug() messages:

drivers/mtd/nand/nand.c: In function 'nand_read':
drivers/mtd/nand/nand.c:42: warning: format '%08x' expects type
 'unsigned int', but argument 2 has type 'ulong'
drivers/mtd/nand/nand.c: In function 'nand_write':
drivers/mtd/nand/nand.c:79: warning: format '%08x' expects type
 'unsigned int', but argument 2 has type 'ulong'
drivers/mtd/nand/nand.c:85: warning: format '%d' expects type '
int', but argument 3 has type 'long unsigned int'
drivers/mtd/nand/nand.c:96: warning: format '%08x' expects type
 'unsigned int', but argument 2 has type 'ulong'
drivers/mtd/nand/nand.c: In function 'nand_ioctl':
drivers/mtd/nand/nand.c:117: warning: format '%08x' expects typ
e 'unsigned int', but argument 2 has type 'long int'
drivers/mtd/nand/nand.c:120: warning: format '%08x' expects typ
e 'unsigned int', but argument 2 has type 'long int'


Sanjeev Premi (1):
  nand: Fix warnings due to incompatible format strings

 drivers/mtd/nand/nand.c      |   14 +++++++-------
 drivers/mtd/nand/nand_base.c |    2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

-- 
1.7.2.2




More information about the barebox mailing list