From patchwork Tue Dec 8 15:39:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7799241 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EB0239F1C2 for ; Tue, 8 Dec 2015 15:40:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 131A420523 for ; Tue, 8 Dec 2015 15:40:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C35E203DB for ; Tue, 8 Dec 2015 15:40:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965164AbbLHPki (ORCPT ); Tue, 8 Dec 2015 10:40:38 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:52679 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965077AbbLHPkh (ORCPT ); Tue, 8 Dec 2015 10:40:37 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0LdVQI-1aW0Pu0Eh0-00ijsC; Tue, 08 Dec 2015 16:39:48 +0100 From: Arnd Bergmann To: Brian Norris , linux-mtd@lists.infradead.org Cc: David Woodhouse , Roger Quadros , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tony Lindgren Subject: [PATCH] mtd: omap_elm: print interrupt resource using %pr Date: Tue, 08 Dec 2015 16:39:45 +0100 Message-ID: <2101351.RbJOfbsbGX@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:AfDQs3TD/uQryMVX4L9STxglKaUG4/VaMtZirwbPIHsynp1EPRi cHyissah90Jccrx274GzEtvIPSZnD4WzC0s4pzQhr+akY4gUzcZXVge+AuEiGo2tgNxt+bW LXpQd2FAHbqjzjSU7hMHvV4VZ8p80/8nUtZOu0sHnX8S/2pJfbV2lWxDOmz/OqRiVuEb/e8 aFjNXRA/AAd2sFjHxaytg== X-UI-Out-Filterresults: notjunk:1; V01:K0:LiiBRBe76VU=:4xu8n9q0Gqdt416i1I8W5j 9GMUCthG0hjqMFcmuiZWBrcljYvydkJFCwA5fdkl5/c60B/wGFBXgFiCiYeV1kh9326/rdMb3 Vp3MIBF+u7TrBx6QZqetKdfDGuk93urOSyzt3JwOZtFjIXXt+0qy1q0tMcEdgNrPFqZ1gZKN3 bx1OhB8JXyj61rZMqJxVcg7y9l+rFdYOgNxR77aAlrHNpYnjghJpx4n3tdVWueBI/YM/0YBaV 90kk41S+i+HYp7AJhAE63cQ6l3n3DSitOjbKpO+RzhZmSr56jCs2CzKR6rp3VwI8CUudv48Nj tBPdJ6d63dJLpCjAixCXNGqO4L3s+/a+5Wj/umYVk5JiwZQXlFI1Lps7Rpgjt7FCTar2LspC0 +qgyyDsaDKsUeY151HSxd7Srdew4SVn/ZJXN+5QveRSxbvW1t+ZYkpVmcqcjZpkfw9CSB2Ysr kTfWq8Maam8W2VQsYUsAnLQqFwX1QzPtUDYVskRjnX+Bu1UQbqqgF16ZpdLEUvAufOMe7yFYq L4V36n6Eygrr2hW7LYV7oOIepG2wup0UdgxWbVUIu+ixO64OLWHOMqPJ/gXpKEKh+v0E5seTj rH2QXsqE+iwxn9fnms3c0TwxyJsgrNSbrhrQqnOW11n0kdiBatQ71c2CsG/LZycbGeEKHkMrx 7p5O+eKzukxLSz+QkVl+eMO95DjXexpWQ/h/dMb9XBEuTptNl8ojRVLVTdC1Ek4C96LtD6FcP fh1/TEnJZEM1f1IL Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_LPAE is set on ARM, resource_size_t is 64-bit wide and we get a warning about an incorrect format string for printing the interrupt number in elm_probe: drivers/mtd/nand/omap_elm.c: In function 'elm_probe': drivers/mtd/nand/omap_elm.c:417:23: warning: format '%i' expects argument of type 'int', but argument 3 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=] This patch avoids the type mismatch by printing the interrupt as a resource using the %pr format string. Signed-off-by: Arnd Bergmann --- drivers/mtd/nand/omap_elm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/omap_elm.c b/drivers/mtd/nand/omap_elm.c index 235ec7992b4c..11f174b07217 100644 --- a/drivers/mtd/nand/omap_elm.c +++ b/drivers/mtd/nand/omap_elm.c @@ -414,7 +414,7 @@ static int elm_probe(struct platform_device *pdev) ret = devm_request_irq(&pdev->dev, irq->start, elm_isr, 0, pdev->name, info); if (ret) { - dev_err(&pdev->dev, "failure requesting irq %i\n", irq->start); + dev_err(&pdev->dev, "failure requesting %pr\n", &irq); return ret; }