mirror of https://gitee.com/openkylin/linux.git
staging: rtl8723au: fix sparse warning
Found running sparse on the rtl8723au driver. CHECK drivers/staging/rtl8723au/core/rtw_cmd.c drivers/staging/rtl8723au/core/rtw_cmd.c:1479:54: warning: incorrect type in argument 2 (different base types) drivers/staging/rtl8723au/core/rtw_cmd.c:1479:54: expected int [signed] gfp drivers/staging/rtl8723au/core/rtw_cmd.c:1479:54: got restricted gfp_t Signed-off-by: Clement Calmels <clement.calmels@free.fr> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bbcd2d258a
commit
809d208b1b
|
@ -100,7 +100,7 @@ void rtw_free_mlme_priv23a(struct mlme_priv *pmlmepriv)
|
|||
rtw23a_free_mlme_priv_ie_data(pmlmepriv);
|
||||
}
|
||||
|
||||
struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv, int gfp)
|
||||
struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv, gfp_t gfp)
|
||||
{
|
||||
struct wlan_network *pnetwork;
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ void rtw23a_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv);
|
|||
|
||||
void _rtw_free_mlme_priv23a(struct mlme_priv *pmlmepriv);
|
||||
|
||||
struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv, int gfp);
|
||||
struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv, gfp_t gfp);
|
||||
|
||||
int rtw_if_up23a(struct rtw_adapter *padapter);
|
||||
|
||||
|
|
Loading…
Reference in New Issue