Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932142AbbKLSlP (ORCPT ); Thu, 12 Nov 2015 13:41:15 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33160 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754309AbbKLSlO (ORCPT ); Thu, 12 Nov 2015 13:41:14 -0500 Message-ID: <5644DD13.9070206@openwrt.org> Date: Thu, 12 Nov 2015 10:40:19 -0800 From: Florian Fainelli Organization: OpenWrt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Arnd Bergmann , Mark Brown CC: linux-arm-kernel@lists.infradead.org, Jonas Gorski , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH] spi: bcm63xx: use correct format string for printing a resource References: <8442314.JjGyK1Sa3M@wuerfel> In-Reply-To: <8442314.JjGyK1Sa3M@wuerfel> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1535 Lines: 45 On 12/11/15 08:44, Arnd Bergmann wrote: > With a 64-bit resource_size_t, we get a build warning on bcm63xx_spi_probe: > > drivers/spi/spi-bcm63xx.c:565:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=] > > As we are printing a resource, we can just use the %pr format > specifier that pretty-prints the address and avoids the warning. > > Signed-off-by: Arnd Bergmann Acked-by: Florian Fainelli Thanks > --- > Found on arm multi_v7_defconfig with LPAE > > diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c > index 06858e04ec59..bf9a610e5b89 100644 > --- a/drivers/spi/spi-bcm63xx.c > +++ b/drivers/spi/spi-bcm63xx.c > @@ -562,8 +562,8 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) > goto out_clk_disable; > } > > - dev_info(dev, "at 0x%08x (irq %d, FIFOs size %d)\n", > - r->start, irq, bs->fifo_size); > + dev_info(dev, "at %pr (irq %d, FIFOs size %d)\n", > + r, irq, bs->fifo_size); > > return 0; > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > -- 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/