[PATCH] cfi: make cfi_staa_erase_varsize static to shut up sparse

Andre Haupt andre at bitwigglers.org
Fri Nov 16 08:29:55 EST 2007


should this be static?


From: Andre Haupt <andre at bitwigglers.org>
Signed-off-by: Andre Haupt <andre at bitwigglers.org>
---
 drivers/mtd/chips/cfi_cmdset_0020.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/chips/cfi_cmdset_0020.c b/drivers/mtd/chips/cfi_cmdset_0020.c
index b344ff8..07a3dd4 100644
--- a/drivers/mtd/chips/cfi_cmdset_0020.c
+++ b/drivers/mtd/chips/cfi_cmdset_0020.c
@@ -893,7 +893,7 @@ 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;
-- 
1.4.4.4




More information about the linux-mtd mailing list