From cd544c3c1499e743d1817b398628c033fab283e3 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Wed, 31 Aug 2022 07:36:38 +0200 Subject: [PATCH] staging: r8188eu: make two functions static The functions rtw_join_timeout_handler() and _rtw_scan_timeout_handler() are only used in os_dep/mlme_linux.c. Make them static. Tested-by: Philipp Hortmann # Edimax N150 Signed-off-by: Michael Straube Link: https://lore.kernel.org/r/20220831053639.8559-2-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/staging/r8188eu/include/rtw_mlme.h | 2 -- drivers/staging/r8188eu/os_dep/mlme_linux.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtw_mlme.h b/drivers/staging/r8188eu/include/rtw_mlme.h index e8168e3..d827ea7 100644 --- a/drivers/staging/r8188eu/include/rtw_mlme.h +++ b/drivers/staging/r8188eu/include/rtw_mlme.h @@ -433,8 +433,6 @@ void indicate_wx_scan_complete_event(struct adapter *padapter); void rtw_indicate_wx_assoc_event(struct adapter *padapter); void rtw_indicate_wx_disassoc_event(struct adapter *padapter); int event_thread(void *context); -void rtw_join_timeout_handler (struct timer_list *t); -void _rtw_scan_timeout_handler (struct timer_list *t); void rtw_free_network_queue(struct adapter *adapter, u8 isfreeall); int rtw_init_mlme_priv(struct adapter *adapter); void rtw_free_mlme_priv (struct mlme_priv *pmlmepriv); diff --git a/drivers/staging/r8188eu/os_dep/mlme_linux.c b/drivers/staging/r8188eu/os_dep/mlme_linux.c index 5bd2b2c..2f8f866 100644 --- a/drivers/staging/r8188eu/os_dep/mlme_linux.c +++ b/drivers/staging/r8188eu/os_dep/mlme_linux.c @@ -7,14 +7,14 @@ #include "../include/drv_types.h" #include "../include/mlme_osdep.h" -void rtw_join_timeout_handler (struct timer_list *t) +static void rtw_join_timeout_handler(struct timer_list *t) { struct adapter *adapter = from_timer(adapter, t, mlmepriv.assoc_timer); _rtw_join_timeout_handler(adapter); } -void _rtw_scan_timeout_handler (struct timer_list *t) +static void _rtw_scan_timeout_handler(struct timer_list *t) { struct adapter *adapter = from_timer(adapter, t, mlmepriv.scan_to_timer); -- 2.7.4