diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-10-09 21:50:30 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-10 10:47:13 +0200 |
commit | 8fd1fe824f20692a09279fabe952cf65bedffeee (patch) | |
tree | a95d3e51527d8634a310f47663e208cefa99340e /drivers/staging/wfx | |
parent | dc3d13fba4695f53d55d4eebe0d714c8b1da62bd (diff) | |
download | linux-8fd1fe824f20692a09279fabe952cf65bedffeee.tar.gz linux-8fd1fe824f20692a09279fabe952cf65bedffeee.tar.bz2 linux-8fd1fe824f20692a09279fabe952cf65bedffeee.zip |
staging: wfx: Make some functions static in sta.c
Fix sparse warnings:
drivers/staging/wfx/sta.c:269:6: warning: symbol 'wfx_update_filtering_work' was not declared. Should it be static?
drivers/staging/wfx/sta.c:475:6: warning: symbol 'wfx_event_handler_work' was not declared. Should it be static?
drivers/staging/wfx/sta.c:521:6: warning: symbol 'wfx_bss_loss_work' was not declared. Should it be static?
drivers/staging/wfx/sta.c:528:6: warning: symbol 'wfx_bss_params_work' was not declared. Should it be static?
drivers/staging/wfx/sta.c:539:6: warning: symbol 'wfx_set_beacon_wakeup_period_work' was not declared. Should it be static?
drivers/staging/wfx/sta.c:732:6: warning: symbol 'wfx_unjoin_work' was not declared. Should it be static?
drivers/staging/wfx/sta.c:794:6: warning: symbol 'wfx_set_cts_work' was not declared. Should it be static?
drivers/staging/wfx/sta.c:1234:6: warning: symbol 'wfx_set_tim_work' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/1570629030-29888-4-git-send-email-zhengbin13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx')
-rw-r--r-- | drivers/staging/wfx/sta.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 3c715cc88ab2..688586e823c0 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -266,7 +266,7 @@ void wfx_update_filtering(struct wfx_vif *wvif) dev_err(wvif->wdev->dev, "update filtering failed: %d\n", ret); } -void wfx_update_filtering_work(struct work_struct *work) +static void wfx_update_filtering_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, update_filtering_work); @@ -472,7 +472,7 @@ static void wfx_event_report_rssi(struct wfx_vif *wvif, uint8_t raw_rcpi_rssi) ieee80211_cqm_rssi_notify(wvif->vif, cqm_evt, rcpi_rssi, GFP_KERNEL); } -void wfx_event_handler_work(struct work_struct *work) +static void wfx_event_handler_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, event_handler_work); @@ -518,14 +518,14 @@ void wfx_event_handler_work(struct work_struct *work) __wfx_free_event_queue(&list); } -void wfx_bss_loss_work(struct work_struct *work) +static void wfx_bss_loss_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, bss_loss_work.work); ieee80211_connection_loss(wvif->vif); } -void wfx_bss_params_work(struct work_struct *work) +static void wfx_bss_params_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, bss_params_work); @@ -536,7 +536,7 @@ void wfx_bss_params_work(struct work_struct *work) mutex_unlock(&wvif->wdev->conf_mutex); } -void wfx_set_beacon_wakeup_period_work(struct work_struct *work) +static void wfx_set_beacon_wakeup_period_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, set_beacon_wakeup_period_work); @@ -729,7 +729,7 @@ done_put: cfg80211_put_bss(wvif->wdev->hw->wiphy, bss); } -void wfx_unjoin_work(struct work_struct *work) +static void wfx_unjoin_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, unjoin_work); @@ -791,7 +791,7 @@ int wfx_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif, return 0; } -void wfx_set_cts_work(struct work_struct *work) +static void wfx_set_cts_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, set_cts_work); u8 erp_ie[3] = { WLAN_EID_ERP_INFO, 1, 0 }; @@ -1231,7 +1231,7 @@ static int wfx_set_tim_impl(struct wfx_vif *wvif, bool aid0_bit_set) return 0; } -void wfx_set_tim_work(struct work_struct *work) +static void wfx_set_tim_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, set_tim_work); |