[MTD] ftl.c: make code static

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Apr 22 11:59:02 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=5ce45d50056e20aca50f19229d8a7e003569ad26
Commit:     5ce45d50056e20aca50f19229d8a7e003569ad26
Parent:     ed262c4f5cb8291668c27c88a022bd7628f067a4
Author:     Adrian Bunk <bunk at kernel.org>
AuthorDate: Mon Apr 14 17:20:24 2008 +0300
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Tue Apr 22 15:56:00 2008 +0100

    [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 at kernel.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/ftl.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c
index c815d0f..4a79b18 100644
--- a/drivers/mtd/ftl.c
+++ b/drivers/mtd/ftl.c
@@ -136,8 +136,6 @@ typedef struct partition_t {
 #endif
 } partition_t;
 
-void ftl_freepart(partition_t *part);
-
 /* Partition state flags */
 #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);
 	part->VirtualBlockMap = NULL;
@@ -1069,7 +1067,7 @@ static void ftl_remove_dev(struct mtd_blktrans_dev *dev)
 	kfree(dev);
 }
 
-struct mtd_blktrans_ops ftl_tr = {
+static struct mtd_blktrans_ops ftl_tr = {
 	.name		= "ftl",
 	.major		= FTL_MAJOR,
 	.part_bits	= PART_BITS,



More information about the linux-mtd-cvs mailing list