[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1449066837-15773-1-git-send-email-colin.king@canonical.com>
Date: Wed, 2 Dec 2015 14:33:57 +0000
From: Colin King <colin.king@...onical.com>
To: Mark Brown <broonie@...nel.org>, linux-spi@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] spi/bcm63xx: fix build warning on printk format specifier
From: Colin Ian King <colin.king@...onical.com>
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@...onical.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists