Skip to content

Commit 3d04dd2

Browse files
Jingoo Hangregkh
authored andcommitted
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? Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Alessandro Rubini <rubini@gnudd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b4fb0ca commit 3d04dd2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/fmc/fmc-write-eeprom.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static int fwe_run(struct fmc_device *fmc, const struct firmware *fw, char *s)
103103
* difficult to know in advance when probing the first card if others
104104
* are there.
105105
*/
106-
int fwe_probe(struct fmc_device *fmc)
106+
static int fwe_probe(struct fmc_device *fmc)
107107
{
108108
int err, index = 0;
109109
const struct firmware *fw;
@@ -144,7 +144,7 @@ int fwe_probe(struct fmc_device *fmc)
144144
return 0;
145145
}
146146

147-
int fwe_remove(struct fmc_device *fmc)
147+
static int fwe_remove(struct fmc_device *fmc)
148148
{
149149
return 0;
150150
}

0 commit comments

Comments
 (0)