From patchwork Fri Dec 18 13:15:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7883671 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 A93569F1AF for ; Fri, 18 Dec 2015 13:16:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB22C2049D for ; Fri, 18 Dec 2015 13:16:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04E8220494 for ; Fri, 18 Dec 2015 13:16:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932242AbbLRNQM (ORCPT ); Fri, 18 Dec 2015 08:16:12 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:52437 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932108AbbLRNQL (ORCPT ); Fri, 18 Dec 2015 08:16:11 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0Lfneo-1aYrMa3Flq-00pORM; Fri, 18 Dec 2015 14:15:18 +0100 From: Arnd Bergmann To: Brian Norris Cc: Tony Lindgren , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, David Woodhouse , linux-arm-kernel@lists.infradead.org, Roger Quadros Subject: [PATCH v2] mtd: omap_elm: print interrupt resource using %pr Date: Fri, 18 Dec 2015 14:15:17 +0100 Message-ID: <2327550.1yLrRnIh7I@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:kRDJQagolT0m5d3ao4qxfYmvz5jHmtb3FK6z+nadLR8tWSKq00a 1LP/fxMfuL/Sid/D/TNxYQIP2aa0aWlLnR93xSL1KXBihA04pSEbSwcm1uAOQspRa1FUE9C XvguM3Dn9MB3/22YtRLrvONTWOC6pkAz9D3WV9s0+h5rZKsAUQlqZsggVQ57G/S+hDA+akL y6HK/512aeOiJdacUUPUg== X-UI-Out-Filterresults: notjunk:1; V01:K0:q5jjUucM0tc=:LNa/PoN4IYtU2lFLO2XJLT mxk8TADWk1xDauttdvJlJmvPyAWN1pK+Z2nFAwl0eE+z9GzSZ0nKZdwWbI2DGxfvaenBqaujc 0k+D2Q0ReSxMIFCi4otJ2oFPevyrVm47aeWuweDI6ld5gIUT2Jb9FTeADi5JDwppi1EcAr/o/ 8IY04eoMaCGCXFrz04kxwy/vFZi0j1l/bC85NQ1EpuDo39p/u1xgUHzbmvjnUCT6mdFWMbTHf OwhitDCfF+Q23ezECJaTI3OQ5QeoxoOqlAonBwykKfxZRPcXDhW2sJBJD9UOzQ/k4sRwEtQdb mPrENBgcpHTWRFWuOhWFrmJEESyPt4gHFdTbXC+xkc1xQvrtTqpVulrQT+5kN/4QI1AP7XifI Z5EfHcs/r+Dw7vz/D/JeyKyiEBNSIDfyZPMgGJLnY+7WJT51q15qPrXz8Uk+xwzYZoUUHi+1j OIyDK6scB/RCxeWG5PQOzfqIT4ipDHZqMYUILR5ypQea1R3sU4DYX9P1bdJQyy/vJQIlFxkI4 1bdL2lZodB7Q9Tmo4lRaWeH1NHJmX5tCd0L0YmYwu1yKiOHxyi467YWe/dFrUXxCm0iqI5G7k Wx+PoV5aE3rH2ymYhwXr6xp7IIzyruIJC0WCE4jK+Y2blp9FJO0GyYyQy3+3fSG0lnH2Kh+ef f3icW0n2MBRAReN5DwIZMRyTd02thJijEnEUOKyF58SWb/KWXCT1qFv3DgQD3SkJiGyzvQztV iLx912dcDqjA255T 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=unavailable 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 --- v2: pass correct pointer -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mtd/nand/omap_elm.c b/drivers/mtd/nand/omap_elm.c index 235ec7992b4c..a3f32f939cc1 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; }