mtd/drivers/mtd/maps plat-ram.c,1.5,1.6
gleixner at infradead.org
gleixner at infradead.org
Sun Nov 6 19:52:27 EST 2005
Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv27627/drivers/mtd/maps
Modified Files:
plat-ram.c
Log Message:
[MTD] maps/plat-ram: Avoid gcc 4.0 warning
The assignement of a "const char *" to a "char *" variable
is emitting a warning with gcc 4.0. We cannot change
mtd->name to "const char *" as we have dynamic assignements
of the name.
Index: plat-ram.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/plat-ram.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- plat-ram.c 6 Nov 2005 11:15:51 -0000 1.5
+++ plat-ram.c 7 Nov 2005 00:52:24 -0000 1.6
@@ -177,7 +177,7 @@
info->map.phys = res->start;
info->map.size = (res->end - res->start) + 1;
- info->map.name = pdata->mapname != NULL ? pdata->mapname : pd->name;
+ info->map.name = pdata->mapname != NULL ? pdata->mapname : (char *)pd->name;
info->map.bankwidth = pdata->bankwidth;
/* register our usage of the memory area */
More information about the linux-mtd-cvs
mailing list