Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933210AbbKRPVu (ORCPT ); Wed, 18 Nov 2015 10:21:50 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:52726 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932355AbbKRPVs (ORCPT ); Wed, 18 Nov 2015 10:21:48 -0500 From: Arnd Bergmann To: Linus Walleij , linux-gpio@vger.kernel.org Cc: Ludovic Desroches , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] pinctrl: at91-pio4: use %pr format string for resource Date: Wed, 18 Nov 2015 16:21:17 +0100 Message-ID: <5199877.GVYeflqET9@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:wowPZatw4dNip6GWm1A7Aaphe/Fwrqym8HVzcmSnhLeu7Rs7aTe 0VmNBkA6DADypsZVymz97b8GoTs4Bf/OUUjLRntQxV2TkfRm/IfIUALMlj8E9q1JjIFRUt9 c4EJRc+qvwzUss5R4vjS3BN2qxBAPl5bRR5X1vyMIeOdb/5gGc1T9tJW706m/cu2jx9nL9C fBjVBP4SPZxyFQ45Q5psA== X-UI-Out-Filterresults: notjunk:1;V01:K0:9N4/djVK+YM=:QbY/VBN0Odgqy9xmMEADWY nQIlfyXnR91Y5oWBQQHU4dH1ynNQcFdsAC/p25BEiKLny/N7M5N72CJLN+5awlQpnSf0Js6Po UhG8E63Tejh3wQoOqnZNuDVDrBaLowrlNeH+r5XHyGhcuksA4wZqq9R5SCA17gYcONe630//T 3+fVYr1vC6E6hYzTMkyrSeib9xF/S1fZ7YYNsASZuahyw4cFoQ2rAVRbMxXJYA+PLUSUzeUPO d2A5z2XGNatLeBUsoM7mkbCkYQOonJsQ+vlp+W+0Xjn7fdwFyQ+aDJBQMrnTgXo/bKRdDxWqM /tnpE09NIcV1i434CMh7xttwqftgLcjGkkGvUYe6POtvyXrTIk4V9Ywk555qlZGS7wUgm5c5T 9EhydwmScJK9CKEEAPPKHU8Cjb6nQgeCVDM/dzP97leWvBoxPE7xzTOqZUYIHWwMqfRJDUFMF 4aQhldw4rRhazFb50WZscXD2DReJHb6c163BT1GxtHsi8Th2r3Ep9mgo2gkkkOPw2e1nB1QF3 rKHZ4U5BVD2HMeKt1UKrjruUkiHGcCdRKMwMCk3EBPPsKZDC5sh06/SW/mXhR9IXIPrgqnoBq 3f46/9laSntF3Bhr3e0t2vWIntp1umVDorxMZ6ChYZMg43uUtleo3MksjeysP+pszpxT/t/qZ isVEVbppVlfFPIzlR9TOjTAgnYpl673R1z19ZmTbehgu0stEZ2+3nB1u0s0o+oGQfHRv5sqqq TQchAITDJO1NSTWw Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1619 Lines: 36 resource_size_t may be defined as 32 or 64 bit depending on configuration, so it cannot be printed using the normal format strings, as gcc correctly warns: pinctrl-at91-pio4.c: In function 'atmel_pinctrl_probe': pinctrl-at91-pio4.c:1003:41: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=] dev_dbg(dev, "bank %i: hwirq=%u\n", i, res->start); This changes the format string to use the special "%pr" format string that prints a resource, and changes the arguments so we the resource structure directly. Signed-off-by: Arnd Bergmann --- v2: don't break ordering of arguments, that part was correct already, unlike what I said in v1. diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 33edd07d9149..abdc16e5a970 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -1000,7 +1000,7 @@ static int atmel_pinctrl_probe(struct platform_device *pdev) atmel_pioctrl->irqs[i] = res->start; irq_set_chained_handler(res->start, atmel_gpio_irq_handler); irq_set_handler_data(res->start, atmel_pioctrl); - dev_dbg(dev, "bank %i: hwirq=%u\n", i, res->start); + dev_dbg(dev, "bank %i: irq=%pr\n", i, res); } atmel_pioctrl->irq_domain = irq_domain_add_linear(dev->of_node, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/