Skip to contentSkip to conversation

FMC: Staticize local symbols

PATCH In review Jingoo Han 2 participants 2 messages Aug 12, 2013

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 FMC: Staticize local symbols

This local symbol is used only in this file.
Fix the following sparse warnings:

drivers/fmc/fmc-write-eeprom.c:106:5: warning: symbol 'fwe_probe' was not declared. Should it be static? drivers/fmc/fmc-write-eeprom.c:147:5: warning: symbol 'fwe_remove' was not declared. Should it be static?

---
 drivers/fmc/fmc-write-eeprom.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/fmc/fmc-write-eeprom.c +2 -2
index 2cc680d..ee5b479 100644
@@ -103,7 +103,7 @@ static int fwe_run(struct fmc_device *fmc, const struct firmware *fw, char *s)
  * difficult to know in advance when probing the first card if others
  * are there.
  */
-int fwe_probe(struct fmc_device *fmc)
+static int fwe_probe(struct fmc_device *fmc)
 {
 	int err, index = 0;
 	const struct firmware *fw;
@@ -144,7 +144,7 @@ int fwe_probe(struct fmc_device *fmc)
 	return 0;
 }
 
-int fwe_remove(struct fmc_device *fmc)
+static int fwe_remove(struct fmc_device *fmc)
 {
 	return 0;
 }
Signature · 1 line
1.7.10.4