[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101213114421.3abe0dcb.randy.dunlap@oracle.com>
Date: Mon, 13 Dec 2010 11:44:21 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
akpm <akpm@...ux-foundation.org>
Cc: linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Andres Salomon <dilinger@...labora.co.uk>
Subject: [PATCH -next] cs5535: fix printk format warnings
From: Randy Dunlap <randy.dunlap@...cle.com>
Fix printk format warnings in cs5535 drivers:
drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
Cc: Andres Salomon <dilinger@...labora.co.uk>
---
drivers/gpio/cs5535-gpio.c | 5 +++--
drivers/misc/cs5535-mfgpt.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
--- linux-next-20101213.orig/drivers/gpio/cs5535-gpio.c
+++ linux-next-20101213/drivers/gpio/cs5535-gpio.c
@@ -266,8 +266,9 @@ static int __devinit cs5535_gpio_probe(s
cs5535_gpio_chip.pdev = pdev;
spin_lock_init(&cs5535_gpio_chip.lock);
- dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n",
- res->start, res->end);
+ dev_info(&pdev->dev, "region 0x%llx - 0x%llx reserved\n",
+ (unsigned long long)res->start,
+ (unsigned long long)res->end);
/* mask out reserved pins */
mask &= 0x1F7FFFFF;
--- linux-next-20101213.orig/drivers/misc/cs5535-mfgpt.c
+++ linux-next-20101213/drivers/misc/cs5535-mfgpt.c
@@ -317,8 +317,9 @@ static int __devinit cs5535_mfgpt_probe(
cs5535_mfgpt_chip.pdev = pdev;
spin_lock_init(&cs5535_mfgpt_chip.lock);
- dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n", res->start,
- res->end);
+ dev_info(&pdev->dev, "region 0x%llx - 0x%llx reserved\n",
+ (unsigned long long)res->start,
+ (unsigned long long)res->end);
/* detect the available timers */
t = scan_timers(&cs5535_mfgpt_chip);
--
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