lkml.org 
[lkml]   [2015]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] spi/bcm63xx: fix build warning on printk format specifier
Date
From: Colin Ian King <colin.king@canonical.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@canonical.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


\
 
 \ /
  Last update: 2015-12-02 16:01    [W:0.389 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site