Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754466AbbKLOQN (ORCPT ); Thu, 12 Nov 2015 09:16:13 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:57867 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754394AbbKLOQJ (ORCPT ); Thu, 12 Nov 2015 09:16:09 -0500 From: Arnd Bergmann To: Linus Walleij , linux-gpio@vger.kernel.org Cc: Ludovic Desroches , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: at91-pio4: use %pr format string for resource Date: Thu, 12 Nov 2015 15:15:38 +0100 Message-ID: <3726450.XyTgssZ1KT@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:GXrb0cK48we2mKFUVPaIW7ri56Yc2GZ4DU5+TjriYg2qKKFjWQn tAbRyNcQxzg7MGk6E5+K0MsLJ0Veqw4FUxg0RRbQKPKNTYkP3XfmQurcKrfiMaBas0f9t+h s2AMbab4pKX/Q5WsoQZ8SniYRXphtD2Pe8y4pfysFhXJJ/FSalpGbRlsUoFX1VVKjkndstW ZBWfOnixnozYNcSCB6Omg== X-UI-Out-Filterresults: notjunk:1;V01:K0:zjVaOA0nYnI=:H2Ls4TnQUCyAU3yJldGItY dteD3uUwaxU9rATi702UQ5b0S0tcK/EjqmB+3u3meGTurcYjkfqpQL+tHVSkfhPT+oq41DVMB 5t1mzNO8rgP5UvcZSZ6tgVigdNRzs2fYe5a8eQkqa2/+GUGYLsECN2vcD9aC2hoTZp1iYsFrU ZZO4EDYyreB/3PGgd8IyQu5LRJXb54TDZGSKBZzX8h/BPdiBvib/ppddSk8UJCvWb36/CejKw UQScq6ZLyMjHGWqGkn3GdKlQajgYrgUBMja9Vbjsy5XbCdwFdiGdsFCZExcVCGswD7IzEligD Vzm7oSZYHgUy5foJVfN/Bu22AtwVGOvsqhIJ19vtT4p2StGttWEcCOCVJmHJ5IFMeTpyGzHOQ hs/G1OaCeagvmpWH1NOnMNECsBHioC1jYwxOaf9I9lFshw7vc0IBYEvnbQE4vhuaZIcSycqi7 mU5XelFA4j91AtK79kLCAGjd5aOdF+51jhZCv783vetHopY1muAymUx6auX+PLVdA5fKwwIb6 9TmC3/O4x8CZ01NaZyyhaqv8QsI7XMki3EdQt3qH9UchbFUfLNhr7tfKufcjwXPsKkTX6sZ// 5VdNjZw0DAzDQE2yhAWSH6EZ03qVd3ygHpYENZMfFEsFwT4hcueRHX9ES0eFt9gFYbqm4iFS7 iV8E3xq4I0P3U8w/v8Wdn67eIhZJo9Cq3yOnSMn/D9rT3QdZf7tBaLfXKyY00gdhGMa8wcsqx gpBmpjhcj2Dv6eJX Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1597 Lines: 34 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. I'm also swapping out the arguments to match the text in the format string. Signed-off-by: Arnd Bergmann diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 33edd07d9149..23217e990eaf 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 %pr: hwirq=%u\n", res, i); } 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/