[MTD] Prepare physmap for 64-bit-resources
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Jun 9 10:59:02 EDT 2006
Commit: f24ff6bf8c903bc0c645bf87fbe87f9a6d9f634f
Parent: 4ed0156f774cf50252e7f51032d1cc857fe86879
Author: Andrew Morton <akpm at osdl.org>
AuthorDate: Fri Jun 9 15:12:34 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Jun 9 15:12:34 2006 +0100
[MTD] Prepare physmap for 64-bit-resources
Fallout from the incoming 64-bit-resource stuff:
drivers/mtd/maps/physmap.c: In function 'physmap_flash_probe':
drivers/mtd/maps/physmap.c:94: warning: format '%.8lx' expects type 'long
unsigned int', but argument 2 has type 'resource_size_t'
drivers/mtd/maps/physmap.c:94: warning: format '%.8lx' expects type 'long
unsigned int', but argument 3 has type 'resource_size_t'
Cc: Vivek Goyal <vgoyal at in.ibm.com>
Cc: Greg KH <greg at kroah.com>
Signed-off-by: Andrew Morton <akpm at osdl.org>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
drivers/mtd/maps/physmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c
index bc82f70..433c3ca 100644
--- a/drivers/mtd/maps/physmap.c
+++ b/drivers/mtd/maps/physmap.c
@@ -89,9 +89,9 @@ static int physmap_flash_probe(struct pl
if (physmap_data == NULL)
return -ENODEV;
- printk(KERN_NOTICE "physmap platform flash device: %.8lx at %.8lx\n",
- dev->resource->end - dev->resource->start + 1,
- dev->resource->start);
+ printk(KERN_NOTICE "physmap platform flash device: %.8llx at %.8llx\n",
+ (unsigned long long)dev->resource->end - dev->resource->start + 1,
+ (unsigned long long)dev->resource->start);
info = kmalloc(sizeof(struct physmap_flash_info), GFP_KERNEL);
if (info == NULL) {
More information about the linux-mtd-cvs
mailing list