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


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,





More information about the linux-mtd-cvs mailing list