mtd/drivers/mtd/maps sc520cdp.c,1.22,1.23 pci.c,1.13,1.14
David Woodhouse
dwmw2 at infradead.org
Thu Nov 17 03:20:31 EST 2005
- Previous message: mtd/Documentation/jffs3/pics comprex-01.eps, NONE,
1.1 comprex-01.pdf, NONE, 1.1 comprex-01.png, NONE, 1.1
- Next message: mtd/fs/jffs2 erase.c, 1.89, 1.90 nodelist.h, 1.144, 1.145 scan.c,
1.131, 1.132 summary.c, 1.8, 1.9 wbuf.c, 1.106, 1.107
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv17662
Modified Files:
sc520cdp.c pci.c
Log Message:
[MTD] Make some tables 'const' so they can live in .rodata
<arjan> drivers/mtd/maps/sc520cdp.c:167: warning: âpar_tableâ is never written to and should be declared 'const'
<arjan> drivers/mtd/maps/pci.c:105: warning: âmtd_pci_mapâ is never written to and should be declared 'const'
<arjan> mind fixing those up ?
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
Index: sc520cdp.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/sc520cdp.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- sc520cdp.c 7 Nov 2005 11:14:28 -0000 1.22
+++ sc520cdp.c 17 Nov 2005 08:20:27 -0000 1.23
@@ -164,7 +164,7 @@
unsigned long default_address;
};
-static struct sc520_par_table par_table[NUM_FLASH_BANKS] =
+static const struct sc520_par_table par_table[NUM_FLASH_BANKS] =
{
{ /* Flash Bank #0: selected by ROMCS0 */
SC520_PAR_ROMCS0,
Index: pci.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/pci.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- pci.c 7 Nov 2005 11:14:27 -0000 1.13
+++ pci.c 17 Nov 2005 08:20:27 -0000 1.14
@@ -102,7 +102,7 @@
memcpy_toio(map->base + map->translate(map, to), from, len);
}
-static struct map_info mtd_pci_map = {
+static const struct map_info mtd_pci_map = {
.phys = NO_XIP,
.copy_from = mtd_pci_copyfrom,
.copy_to = mtd_pci_copyto,
- Previous message: mtd/Documentation/jffs3/pics comprex-01.eps, NONE,
1.1 comprex-01.pdf, NONE, 1.1 comprex-01.png, NONE, 1.1
- Next message: mtd/fs/jffs2 erase.c, 1.89, 1.90 nodelist.h, 1.144, 1.145 scan.c,
1.131, 1.132 summary.c, 1.8, 1.9 wbuf.c, 1.106, 1.107
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list