mtd: fix the build warning for fsl_upm.c
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun Oct 24 20:59:06 EDT 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0eecf4b20d63e0662d0a9732e9bd8a84bd3f872c
Commit: 0eecf4b20d63e0662d0a9732e9bd8a84bd3f872c
Parent: 7351d3a5dbf42ba3299af71db3296be447bc1516
Author: Roy Zang <tie-fei.zang at freescale.com>
AuthorDate: Wed Sep 8 16:47:55 2010 +0800
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sun Oct 24 23:52:39 2010 +0100
mtd: fix the build warning for fsl_upm.c
Fix the build warning:
drivers/mtd/nand/fsl_upm.c: In function 'fun_chip_init':
drivers/mtd/nand/fsl_upm.c:190: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
Signed-off-by: Roy Zang <tie-fei.zang at freescale.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/fsl_upm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
index 4eff8b2..c8ab156 100644
--- a/drivers/mtd/nand/fsl_upm.c
+++ b/drivers/mtd/nand/fsl_upm.c
@@ -186,7 +186,7 @@ static int __devinit fun_chip_init(struct fsl_upm_nand *fun,
if (!flash_np)
return -ENODEV;
- fun->mtd.name = kasprintf(GFP_KERNEL, "%x.%s", io_res->start,
+ fun->mtd.name = kasprintf(GFP_KERNEL, "0x%llx.%s", (u64)io_res->start,
flash_np->name);
if (!fun->mtd.name) {
ret = -ENOMEM;
More information about the linux-mtd-cvs
mailing list