[PATCH] dilnetpc: Fix warning

From: Alan Cox
Date: Wed Mar 07 2007 - 10:32:27 EST


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@xxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/