Since rtw_cmd_callback has been moved to rtw_cmd.c these are internal functions. Remove their declaration in rtw_cmd.h and make them static. Signed-off-by: Luca Ceresoli <luca@xxxxxxxxxxxxxxxx> Cc: Larry Finger <Larry.Finger@xxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxx> --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 18 ++++++++++++------ drivers/staging/rtl8188eu/include/rtw_cmd.h | 6 ------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c index 2b2bec3dbe4a..628a9b38af19 100644 --- a/drivers/staging/rtl8188eu/core/rtw_cmd.c +++ b/drivers/staging/rtl8188eu/core/rtw_cmd.c @@ -43,7 +43,8 @@ static struct cmd_hdl wlancmds[] = { {sizeof(struct SetChannelPlan_param), set_chplan_hdl}, }; -void rtw_survey_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) +static void rtw_survey_cmd_callback(struct adapter *padapter, + struct cmd_obj *pcmd) { struct mlme_priv *pmlmepriv = &padapter->mlmepriv; @@ -64,7 +65,8 @@ void rtw_survey_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) } -void rtw_disassoc_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) +static void rtw_disassoc_cmd_callback(struct adapter *padapter, + struct cmd_obj *pcmd) { struct mlme_priv *pmlmepriv = &padapter->mlmepriv; @@ -82,7 +84,8 @@ void rtw_disassoc_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) rtw_free_cmd_obj(pcmd); } -void rtw_joinbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) +static void rtw_joinbss_cmd_callback(struct adapter *padapter, + struct cmd_obj *pcmd) { struct mlme_priv *pmlmepriv = &padapter->mlmepriv; @@ -102,7 +105,8 @@ void rtw_joinbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) } -void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) +static void rtw_createbss_cmd_callback(struct adapter *padapter, + struct cmd_obj *pcmd) { struct sta_info *psta = NULL; struct wlan_network *pwlan = NULL; @@ -166,7 +170,8 @@ createbss_cmd_fail: } -void rtw_setstaKey_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *pcmd) +static void rtw_setstaKey_cmdrsp_callback(struct adapter *padapter, + struct cmd_obj *pcmd) { struct sta_priv *pstapriv = &padapter->stapriv; struct set_stakey_rsp *psetstakey_rsp = (struct set_stakey_rsp *)(pcmd->rsp); @@ -181,7 +186,8 @@ exit: rtw_free_cmd_obj(pcmd); } -void rtw_setassocsta_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *pcmd) +static void rtw_setassocsta_cmdrsp_callback(struct adapter *padapter, + struct cmd_obj *pcmd) { struct sta_priv *pstapriv = &padapter->stapriv; struct mlme_priv *pmlmepriv = &padapter->mlmepriv; diff --git a/drivers/staging/rtl8188eu/include/rtw_cmd.h b/drivers/staging/rtl8188eu/include/rtw_cmd.h index d10c93e2f6f6..ddb1ae82283b 100644 --- a/drivers/staging/rtl8188eu/include/rtw_cmd.h +++ b/drivers/staging/rtl8188eu/include/rtw_cmd.h @@ -365,14 +365,8 @@ u8 rtw_chk_hi_queue_cmd(struct adapter *padapter); u8 rtw_set_chplan_cmd(struct adapter *padapter, u8 chplan, u8 enqueue); u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf); -void rtw_survey_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd); -void rtw_disassoc_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd); -void rtw_joinbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd); -void rtw_createbss_cmd_callback(struct adapter *adapt, struct cmd_obj *pcmd); void rtw_readtssi_cmdrsp_callback(struct adapter *adapt, struct cmd_obj *cmd); -void rtw_setstaKey_cmdrsp_callback(struct adapter *adapt, struct cmd_obj *cmd); -void rtw_setassocsta_cmdrsp_callback(struct adapter *adapt, struct cmd_obj *cm); void rtw_getrttbl_cmdrsp_callback(struct adapter *adapt, struct cmd_obj *cmd); enum rtw_h2c_cmd { -- 1.9.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel