Skip to contentSkip to conversation

staging: wilc1000: define wilc_get_stats_async as static

PATCH In review Juan Manuel Torres Palma 2 participants 2 messages Jan 3, 2019 – Jan 4, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: define wilc_get_stats_async as static

Declare wilc_get_stats_async as static since it's only used within the definition file scope.

---
 drivers/staging/wilc1000/host_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/host_interface.c +1 -1
index 70c854d939ce..5dae6e7155d3 100644
@@ -1992,7 +1992,7 @@ int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level)
 	return result;
 }
 
-int wilc_get_stats_async(struct wilc_vif *vif, struct rf_info *stats)
+static int wilc_get_stats_async(struct wilc_vif *vif, struct rf_info *stats)
 {
 	int result;
 	struct host_if_msg *msg;
Signature · 1 line
2.20.1
maintainer
#1 lore raw
Quoted 13 lines · Juan Manuel Torres Palma

Declare wilc_get_stats_async as static since it's only used within the definition file scope.

---
 drivers/staging/wilc1000/host_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/host_interface.c +0 -0
index 70c854d939ce..5dae6e7155d3 100644

drivers/staging/wilc1000/host_interface.c int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level) · line 1995

Quoted 5 lines
drivers/staging/wilc1000/host_interface.c +1 -1
@@ -1992,7 +1992,7 @@ int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level)
 	return result;
 }
 
-int wilc_get_stats_async(struct wilc_vif *vif, struct rf_info *stats)
+static int wilc_get_stats_async(struct wilc_vif *vif, struct rf_info *stats)

Someone else sent this same patch a few days before you did, sorry.

greg k-h