From: Sanjeev Premi <premi@ti.com>
To: barebox@lists.infradead.org
Subject: [PATCH 0/1] nand: fix compile warnings
Date: Fri, 7 Jan 2011 10:42:59 +0530 [thread overview]
Message-ID: <1294377180-19672-1-git-send-email-premi@ti.com> (raw)
The patch fixes these compiler warnings reported by
Cory Walker (cwalker32@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2011-01-07 5:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 5:12 Sanjeev Premi [this message]
2011-01-07 5:13 ` [PATCH 1/1] nand: Fix warnings due to incompatible format strings Sanjeev Premi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294377180-19672-1-git-send-email-premi@ti.com \
--to=premi@ti.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox