aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-03-29 18:21:33 -0400
committerMatthew Garrett <mjg@redhat.com>2011-05-27 12:35:45 -0400
commit3a35125f97be0658305c9509c51077959c19b244 (patch)
tree98f6f2f10b83a72b2cd86ff3e78b837daeb951cc
parent39ddf3bf6463bc86041e806b43e014d50a144aa4 (diff)
ibm_rtl: Remove warnings from casts of pointer to int
Just print them as %p. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
-rw-r--r--drivers/platform/x86/ibm_rtl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/ibm_rtl.c b/drivers/platform/x86/ibm_rtl.c
index b1396e5b295..10563458408 100644
--- a/drivers/platform/x86/ibm_rtl.c
+++ b/drivers/platform/x86/ibm_rtl.c
@@ -288,7 +288,7 @@ static int __init ibm_rtl_init(void) {
288 if ((readq(&tmp->signature) & RTL_MASK) == RTL_SIGNATURE) { 288 if ((readq(&tmp->signature) & RTL_MASK) == RTL_SIGNATURE) {
289 phys_addr_t addr; 289 phys_addr_t addr;
290 unsigned int plen; 290 unsigned int plen;
291 RTL_DEBUG("found RTL_SIGNATURE at %#llx\n", (u64)tmp); 291 RTL_DEBUG("found RTL_SIGNATURE at %p\n", tmp);
292 rtl_table = tmp; 292 rtl_table = tmp;
293 /* The address, value, width and offset are platform 293 /* The address, value, width and offset are platform
294 * dependent and found in the ibm_rtl_table */ 294 * dependent and found in the ibm_rtl_table */
@@ -300,7 +300,7 @@ static int __init ibm_rtl_init(void) {
300 RTL_DEBUG("addr = %#llx\n", (unsigned long long)addr); 300 RTL_DEBUG("addr = %#llx\n", (unsigned long long)addr);
301 plen = rtl_cmd_width/sizeof(char); 301 plen = rtl_cmd_width/sizeof(char);
302 rtl_cmd_addr = rtl_port_map(addr, plen); 302 rtl_cmd_addr = rtl_port_map(addr, plen);
303 RTL_DEBUG("rtl_cmd_addr = %#llx\n", (u64)rtl_cmd_addr); 303 RTL_DEBUG("rtl_cmd_addr = %p\n", rtl_cmd_addr);
304 if (!rtl_cmd_addr) { 304 if (!rtl_cmd_addr) {
305 ret = -ENOMEM; 305 ret = -ENOMEM;
306 break; 306 break;