From patchwork Wed Sep 8 03:46:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zang Roy-R61911 X-Patchwork-Id: 64088 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 930E1B6F06 for ; Wed, 8 Sep 2010 14:10:31 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OtBwp-0004Cq-He; Wed, 08 Sep 2010 04:07:47 +0000 Received: from tx2ehsobe003.messaging.microsoft.com ([65.55.88.13] helo=TX2EHSOBE005.bigfish.com) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1OtBwj-0004CD-TA for linux-mtd@lists.infradead.org; Wed, 08 Sep 2010 04:07:43 +0000 Received: from mail125-tx2-R.bigfish.com (10.9.14.252) by TX2EHSOBE005.bigfish.com (10.9.40.25) with Microsoft SMTP Server id 8.1.340.0; Wed, 8 Sep 2010 04:07:38 +0000 Received: from mail125-tx2 (localhost.localdomain [127.0.0.1]) by mail125-tx2-R.bigfish.com (Postfix) with ESMTP id 3487D17F0348; Wed, 8 Sep 2010 04:07:38 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bh84d07hz2dh2a8h64h) X-Spam-TCS-SCL: 3:0 Received: from mail125-tx2 (localhost.localdomain [127.0.0.1]) by mail125-tx2 (MessageSwitch) id 128391885892422_31009; Wed, 8 Sep 2010 04:07:38 +0000 (UTC) Received: from TX2EHSMHS040.bigfish.com (unknown [10.9.14.246]) by mail125-tx2.bigfish.com (Postfix) with ESMTP id 09646C1804F; Wed, 8 Sep 2010 04:07:38 +0000 (UTC) Received: from az33egw02.freescale.net (192.88.158.103) by TX2EHSMHS040.bigfish.com (10.9.99.140) with Microsoft SMTP Server (TLS) id 14.0.482.44; Wed, 8 Sep 2010 04:07:37 +0000 Received: from az33smr01.freescale.net (az33smr01.freescale.net [10.64.34.199]) by az33egw02.freescale.net (8.14.3/8.14.3) with ESMTP id o8847GIA006372; Tue, 7 Sep 2010 21:07:26 -0700 (MST) Received: from localhost.localdomain (rock.ap.freescale.net [10.193.20.106]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id o884Ja8K017772; Tue, 7 Sep 2010 23:19:36 -0500 (CDT) From: Roy Zang To: linux-mtd@lists.infradead.org Subject: [PATCH] mtd: fix the build warning for fsl_upm.c Date: Wed, 8 Sep 2010 11:46:01 +0800 Message-ID: <1283917561-13930-1-git-send-email-tie-fei.zang@freescale.com> X-Mailer: git-send-email 1.5.6.5 MIME-Version: 1.0 X-Reverse-DNS: az33egw02.freescale.net X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100908_000742_109795_13DCD42D X-CRM114-Status: GOOD ( 15.79 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [65.55.88.13 listed in list.dnswl.org] Cc: akpm@linux-foundation.org, dwmw2@infradead.org, cbouatmailru@gmail.com X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 --- drivers/mtd/nand/fsl_upm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c index 4eff8b2..dc61ecf 100644 --- a/drivers/mtd/nand/fsl_upm.c +++ b/drivers/mtd/nand/fsl_upm.c @@ -186,8 +186,8 @@ 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, - flash_np->name); + fun->mtd.name = kasprintf(GFP_KERNEL, "%x.%s", + (unsigned int)io_res->start, flash_np->name); if (!fun->mtd.name) { ret = -ENOMEM; goto err;