Skip to contentSkip to conversation

cfi_cmdset_0002.c: fix 'cfi_amdstd_erase_varsize' to be static

PATCH New Ben Dooks 1 participant 1 message May 28, 2007 Memory technology devices (MTD)

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 cfi_cmdset_0002.c: fix 'cfi_amdstd_erase_varsize' to be static

Make cfi_amdstd_erase_varsize static, as declared at the top of the file to ensure sparse does not print a warning for an undeclared function, as so:

drivers/mtd/chips/cfi_cmdset_0002.c:1612:5: warning: symbol 'cfi_amdstd_erase_varsize' was not declared. Should it be static?

drivers/mtd/chips/cfi_cmdset_0002.c +1 -1
diff -urpN -X linux-2.6.22-rc3/Documentation/dontdiff linux-2.6.22-rc3/drivers/mtd/chips/cfi_cmdset_0002.c linux-2.6.22-rc3-sparse1/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -1609,7 +1609,7 @@ static int __xipram do_erase_oneblock(st
 }
 
 
-int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
+static int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
 {
 	unsigned long ofs, len;
 	int ret;