Sfoglia il codice sorgente

[MTD] ftl.c: make code static

This patch makes the following needlessly global code static:
- ftl_freepart()
- struct ftl_tr

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Adrian Bunk 17 anni fa
parent
commit
5ce45d5005
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      drivers/mtd/ftl.c

+ 2 - 4
drivers/mtd/ftl.c

@@ -136,8 +136,6 @@ typedef struct partition_t {
 #endif
 #endif
 } partition_t;
 } partition_t;
 
 
-void ftl_freepart(partition_t *part);
-
 /* Partition state flags */
 /* Partition state flags */
 #define FTL_FORMATTED	0x01
 #define FTL_FORMATTED	0x01
 
 
@@ -1014,7 +1012,7 @@ static int ftl_writesect(struct mtd_blktrans_dev *dev,
 
 
 /*====================================================================*/
 /*====================================================================*/
 
 
-void ftl_freepart(partition_t *part)
+static void ftl_freepart(partition_t *part)
 {
 {
 	vfree(part->VirtualBlockMap);
 	vfree(part->VirtualBlockMap);
 	part->VirtualBlockMap = NULL;
 	part->VirtualBlockMap = NULL;
@@ -1069,7 +1067,7 @@ static void ftl_remove_dev(struct mtd_blktrans_dev *dev)
 	kfree(dev);
 	kfree(dev);
 }
 }
 
 
-struct mtd_blktrans_ops ftl_tr = {
+static struct mtd_blktrans_ops ftl_tr = {
 	.name		= "ftl",
 	.name		= "ftl",
 	.major		= FTL_MAJOR,
 	.major		= FTL_MAJOR,
 	.part_bits	= PART_BITS,
 	.part_bits	= PART_BITS,