diff options
author | Luciano Coelho <coelho@ti.com> | 2012-05-15 23:00:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-16 13:08:30 -0400 |
commit | 2247997233f3d6808671b5bc0fcf6a9cad7db801 (patch) | |
tree | 86c2e6ffefbcd8fd4b567cc844d52e944e70cc7b /drivers/net | |
parent | 3246a7fbc51abe9394df3c68c7d59ea821a1dce2 (diff) |
wlcore: fix some sparse warnings due to missing static declaration
There were three sparse warnings in main.c due to missing static
declaration:
CHECK drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/main.c:1265:5: warning: symbol 'wl1271_validate_wowlan_pattern' was not declared. Should it be static?
drivers/net/wireless/ti/wlcore/main.c:1408:5: warning: symbol 'wl1271_convert_wowlan_pattern_to_rx_filter' was not declared. Should it be static?
drivers/net/wireless/ti/wlcore/main.c:4823:6: warning: symbol 'wl1271_connection_loss_work' was not declared. Should it be static?
Fix these by adding the static declaration to those functions.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 45fe911a6504..acef93390d3d 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c | |||
@@ -1262,7 +1262,8 @@ static struct sk_buff *wl12xx_alloc_dummy_packet(struct wl1271 *wl) | |||
1262 | 1262 | ||
1263 | 1263 | ||
1264 | #ifdef CONFIG_PM | 1264 | #ifdef CONFIG_PM |
1265 | int wl1271_validate_wowlan_pattern(struct cfg80211_wowlan_trig_pkt_pattern *p) | 1265 | static int |
1266 | wl1271_validate_wowlan_pattern(struct cfg80211_wowlan_trig_pkt_pattern *p) | ||
1266 | { | 1267 | { |
1267 | int num_fields = 0, in_field = 0, fields_size = 0; | 1268 | int num_fields = 0, in_field = 0, fields_size = 0; |
1268 | int i, pattern_len = 0; | 1269 | int i, pattern_len = 0; |
@@ -1405,7 +1406,7 @@ void wl1271_rx_filter_flatten_fields(struct wl12xx_rx_filter *filter, | |||
1405 | * Allocates an RX filter returned through f | 1406 | * Allocates an RX filter returned through f |
1406 | * which needs to be freed using rx_filter_free() | 1407 | * which needs to be freed using rx_filter_free() |
1407 | */ | 1408 | */ |
1408 | int wl1271_convert_wowlan_pattern_to_rx_filter( | 1409 | static int wl1271_convert_wowlan_pattern_to_rx_filter( |
1409 | struct cfg80211_wowlan_trig_pkt_pattern *p, | 1410 | struct cfg80211_wowlan_trig_pkt_pattern *p, |
1410 | struct wl12xx_rx_filter **f) | 1411 | struct wl12xx_rx_filter **f) |
1411 | { | 1412 | { |
@@ -4820,7 +4821,7 @@ static struct bin_attribute fwlog_attr = { | |||
4820 | .read = wl1271_sysfs_read_fwlog, | 4821 | .read = wl1271_sysfs_read_fwlog, |
4821 | }; | 4822 | }; |
4822 | 4823 | ||
4823 | void wl1271_connection_loss_work(struct work_struct *work) | 4824 | static void wl1271_connection_loss_work(struct work_struct *work) |
4824 | { | 4825 | { |
4825 | struct delayed_work *dwork; | 4826 | struct delayed_work *dwork; |
4826 | struct wl1271 *wl; | 4827 | struct wl1271 *wl; |