lkml.org 
[lkml]   [2007]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] dilnetpc: Fix warning
The type of a resource could be 32 or 64bit depending upon platform or
option so cast it explicitly.

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.21-rc2-mm2/drivers/mtd/maps/dilnetpc.c linux-2.6.21-rc2-mm2/drivers/mtd/maps/dilnetpc.c
--- linux.vanilla-2.6.21-rc2-mm2/drivers/mtd/maps/dilnetpc.c 2007-03-06 23:06:09.000000000 +0000
+++ linux-2.6.21-rc2-mm2/drivers/mtd/maps/dilnetpc.c 2007-03-06 19:09:22.000000000 +0000
@@ -402,8 +402,8 @@
++higlvl_partition_info[i].name;
}

- printk(KERN_NOTICE "DIL/Net %s flash: 0x%lx at 0x%lx\n",
- is_dnp ? "DNPC" : "ADNP", dnpc_map.size, dnpc_map.phys);
+ printk(KERN_NOTICE "DIL/Net %s flash: 0x%lx at 0x%llx\n",
+ is_dnp ? "DNPC" : "ADNP", dnpc_map.size, (unsigned long long)dnpc_map.phys);

dnpc_map.virt = ioremap_nocache(dnpc_map.phys, dnpc_map.size);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-03-07 16:35    [W:0.023 / U:1.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site