[PATCH] spi/bcm63xx: fix build warning on printk format specifier

From: Colin King
Date: Wed Dec 02 2015 - 09:34:07 EST


From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Fix the following build warning when building with clang:

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=]
dev_info(dev, "at 0x%08x (irq %d, FIFOs size %d)\n",

Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
---
drivers/spi/spi-bcm63xx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c
index 06858e0..8209b60 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 %pa (irq %d, FIFOs size %d)\n",
+ (void *)r->start, irq, bs->fifo_size);

return 0;

--
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/