Messages in this thread Patch in this message | | | Date | Wed, 7 Mar 2007 16:36:01 +0000 | From | Alan Cox <> | 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/
| |