From patchwork Tue Jan 31 03:08:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randy.Dunlap" X-Patchwork-Id: 138677 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 11808B6EE7 for ; Tue, 31 Jan 2012 13:12:08 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Rs3Av-000497-1l; Tue, 31 Jan 2012 02:10:25 +0000 Received: from oproxy5.bluehost.com ([2605:dc00:100:2::a5] helo=oproxy5-pub.bluehost.com) by merlin.infradead.org with smtp (Exim 4.76 #1 (Red Hat Linux)) id 1Rs3Aq-00048t-EU for linux-mtd@lists.infradead.org; Tue, 31 Jan 2012 02:10:22 +0000 Received: (qmail 10941 invoked by uid 0); 31 Jan 2012 02:10:13 -0000 Received: from unknown (HELO box742.bluehost.com) (66.147.244.242) by cpoproxy2.bluehost.com with SMTP; 31 Jan 2012 02:10:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenotime.net; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=KQ2T7fuwxqnFGfeNQ/5GUjahUr4tMEN6CAoS5/D3J5k=; b=aBCVBRe9fMWrb8WasuRYsqyr4+8sGjOG58evjD6rVkTvh7tVsXpNCBoCP/jLTs89TsbPFqUd3lPLTiTezQvTlf6E781LE2CNQ7sIR0CB81VrSHdk143mdxwZMIZYmmI/; Received: from static-50-53-38-135.bvtn.or.frontiernet.net ([50.53.38.135] helo=[192.168.1.9]) by box742.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Rs3Aj-0006mj-Mw; Mon, 30 Jan 2012 19:10:13 -0700 Message-ID: <4F275B20.6010105@xenotime.net> Date: Mon, 30 Jan 2012 19:08:16 -0800 From: Randy Dunlap Organization: YPO4 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Thunderbird/3.1.9 MIME-Version: 1.0 To: Stephen Rothwell Subject: [PATCH -next] mtd: fix nand/docg4.c printk format warnings References: <20120130144102.8d202c7d8eccd503a86b3053@canb.auug.org.au> In-Reply-To: <20120130144102.8d202c7d8eccd503a86b3053@canb.auug.org.au> X-Identified-User: {1807:box742.bluehost.com:xenotime:xenotime.net} {sentby:smtp auth 50.53.38.135 authed with rdunlap@xenotime.net} X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Cc: linux-mtd@lists.infradead.org, Andrew Morton , linux-next@vger.kernel.org, David Woodhouse , LKML X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 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 From: Randy Dunlap Fix printk format warnings for resource_size_t: drivers/mtd/nand/docg4.c:1277:4: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t' drivers/mtd/nand/docg4.c:1277:4: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t' Signed-off-by: Randy Dunlap Cc: David Woodhouse Cc: linux-mtd@lists.infradead.org --- drivers/mtd/nand/docg4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- linux-next-20120130.orig/drivers/mtd/nand/docg4.c +++ linux-next-20120130/drivers/mtd/nand/docg4.c @@ -1273,8 +1273,9 @@ static int __init probe_docg4(struct pla virtadr = ioremap(r->start, resource_size(r)); if (!virtadr) { dev_err(dev, "Diskonchip ioremap failed: " - "0x%x bytes at 0x%x\n", - resource_size(r), r->start); + "0x%llx bytes at 0x%llx\n", + (unsigned long long)resource_size(r), + (unsigned long long)r->start); return -EIO; }