From patchwork Wed Sep 8 08:47:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2] mtd: fix the build warning for fsl_upm.c Date: Tue, 07 Sep 2010 22:47:55 -0000 From: Zang Roy-R61911 X-Patchwork-Id: 64120 Message-Id: <1283935675-14215-1-git-send-email-tie-fei.zang@freescale.com> To: linux-mtd@lists.infradead.org Cc: akpm@linux-foundation.org, dedekind1@gmail.com, dwmw2@infradead.org, cbouatmailru@gmail.com 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 --- Comparing v1, using u64 instead of u32 for io_res->start. 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;