[MTD] [NOR] cfi_cmdset_0020.c: make a function 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=eb8e31831a603f285ee9e6ffc59d5366e0ff8a8e
Commit:     eb8e31831a603f285ee9e6ffc59d5366e0ff8a8e
Parent:     5ce45d50056e20aca50f19229d8a7e003569ad26
Author:     Adrian Bunk <bunk at kernel.org>
AuthorDate: Mon Apr 14 17:20:30 2008 +0300
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Tue Apr 22 15:56:16 2008 +0100

    [MTD] [NOR] cfi_cmdset_0020.c: make a function static
    
    This patch makes the needlessly global cfi_staa_erase_varsize() static.
    
    Signed-off-by: Adrian Bunk <bunk at kernel.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/chips/cfi_cmdset_0020.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/chips/cfi_cmdset_0020.c b/drivers/mtd/chips/cfi_cmdset_0020.c
index 669caeb..1b720cc 100644
--- a/drivers/mtd/chips/cfi_cmdset_0020.c
+++ b/drivers/mtd/chips/cfi_cmdset_0020.c
@@ -893,7 +893,8 @@ retry:
 	return ret;
 }
 
-int cfi_staa_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
+static int cfi_staa_erase_varsize(struct mtd_info *mtd,
+				  struct erase_info *instr)
 {	struct map_info *map = mtd->priv;
 	struct cfi_private *cfi = map->fldrv_priv;
 	unsigned long adr, len;



More information about the linux-mtd-cvs mailing list