From: Dmitry Artamonow <mad_soft@inbox.ru>
To: linux-mtd@lists.infradead.org
Subject: [PATCH] [MTD] MAPS: fix build warning in sa1100-flash
Date: Sun, 22 Feb 2009 11:30:11 +0300 [thread overview]
Message-ID: <20090222083011.GA10959@rainbow> (raw)
Fix warning in sa1100-flash introduced by commit
69423d99fc182a81f3c5db3eb5c140acc6fc64be.
drivers/mtd/maps/sa1100-flash.c: In function 'sa1100_probe_subdev':
drivers/mtd/maps/sa1100-flash.c:214: warning: format '%d' expects type 'int',
but argument 3 has type 'uint64_t'
Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
---
drivers/mtd/maps/sa1100-flash.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Just for reference - some example buildlogs where warning can be seen:
http://armlinux.simtec.co.uk/kautobuild/2.6.29-rc5-git4/badge4_defconfig/zimage.log
http://armlinux.simtec.co.uk/kautobuild/2.6.29-rc5-git4/h3600_defconfig/zimage.log
http://kisskb.ellerman.id.au/kisskb/buildresult/75884/
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index 6f6a0f6..6b51abc 100644
--- a/drivers/mtd/maps/sa1100-flash.c
+++ b/drivers/mtd/maps/sa1100-flash.c
@@ -210,7 +210,7 @@ static int sa1100_probe_subdev(struct sa_subdev_info *subdev, struct resource *r
subdev->mtd->owner = THIS_MODULE;
printk(KERN_INFO "SA1100 flash: CFI device at 0x%08lx, %dMiB, "
- "%d-bit\n", phys, subdev->mtd->size >> 20,
+ "%d-bit\n", phys, (int)(subdev->mtd->size >> 20),
subdev->map.bankwidth * 8);
return 0;
--
1.6.1.3
--
Best regards,
Dmitry "MAD" Artamonow
reply other threads:[~2009-02-22 8:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20090222083011.GA10959@rainbow \
--to=mad_soft@inbox.ru \
--cc=linux-mtd@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