Skip to contentSkip to conversation

block: mg_disk: Staticize mg_times_out()

PATCH New Jingoo Han 1 participant 1 message Aug 9, 2013 Block layer

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 2/3 block: mg_disk: Staticize mg_times_out()

mg_times_out() is used only in this file.
Fix the following sparse warning:

drivers/block/mg_disk.c:639:6: warning: symbol 'mg_times_out' was not declared. Should it be static?

---
 drivers/block/mg_disk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/mg_disk.c +1 -1
index a56cfcd..77a60be 100644
@@ -636,7 +636,7 @@ ok_to_write:
 		mg_request(host->breq);
 }
 
-void mg_times_out(unsigned long data)
+static void mg_times_out(unsigned long data)
 {
 	struct mg_host *host = (struct mg_host *)data;
 	char *name;
Signature · 1 line
1.7.10.4