[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070307163601.3662aec1@lxorguk.ukuu.org.uk>
Date: Wed, 7 Mar 2007 16:36:01 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: akpm@...l.org, linux-kernel@...r.kernel.org, dwmw2@...radead.org
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@...hat.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@...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