mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-15 01:19:36 +00:00
rtl8188eu: Fix build with kernel 5.4
Beginning with 5.4.0-rc3, a macro is defined for "fallthrough". For that reason, the attribute statement must use __fallthrough__ instead. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
5342fb8368
commit
a0e9c1dfc6
3 changed files with 4 additions and 4 deletions
|
@ -1400,7 +1400,7 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
|
||||||
ptable->func = &OnAuth;
|
ptable->func = &OnAuth;
|
||||||
else
|
else
|
||||||
ptable->func = &OnAuthClient;
|
ptable->func = &OnAuthClient;
|
||||||
__attribute__ ((fallthrough));/* FALL THRU */
|
__attribute__ ((__fallthrough__));/* FALL THRU */
|
||||||
case WIFI_ASSOCREQ:
|
case WIFI_ASSOCREQ:
|
||||||
case WIFI_REASSOCREQ:
|
case WIFI_REASSOCREQ:
|
||||||
_mgt_dispatcher(padapter, ptable, precv_frame);
|
_mgt_dispatcher(padapter, ptable, precv_frame);
|
||||||
|
|
|
@ -827,7 +827,7 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload)
|
||||||
|
|
||||||
case C2H_EXTEND:
|
case C2H_EXTEND:
|
||||||
sub_id = payload[0];
|
sub_id = payload[0];
|
||||||
__attribute__ ((fallthrough));/* FALL THRU */
|
__attribute__ ((__fallthrough__));/* FALL THRU */
|
||||||
default:
|
default:
|
||||||
if (phydm_c2H_content_parsing(odm, id, plen, payload) != true)
|
if (phydm_c2H_content_parsing(odm, id, plen, payload) != true)
|
||||||
ret = _FAIL;
|
ret = _FAIL;
|
||||||
|
|
|
@ -1749,7 +1749,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
||||||
#if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE))
|
#if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE))
|
||||||
case NL80211_IFTYPE_P2P_CLIENT:
|
case NL80211_IFTYPE_P2P_CLIENT:
|
||||||
is_p2p = true;
|
is_p2p = true;
|
||||||
__attribute__ ((fallthrough));/* FALL THRU */
|
__attribute__ ((__fallthrough__));/* FALL THRU */
|
||||||
#endif
|
#endif
|
||||||
case NL80211_IFTYPE_STATION:
|
case NL80211_IFTYPE_STATION:
|
||||||
networkType = Ndis802_11Infrastructure;
|
networkType = Ndis802_11Infrastructure;
|
||||||
|
@ -1774,7 +1774,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
||||||
#if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE))
|
#if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE))
|
||||||
case NL80211_IFTYPE_P2P_GO:
|
case NL80211_IFTYPE_P2P_GO:
|
||||||
is_p2p = true;
|
is_p2p = true;
|
||||||
__attribute__ ((fallthrough));/* FALL THRU */
|
__attribute__ ((__fallthrough__));/* FALL THRU */
|
||||||
#endif
|
#endif
|
||||||
case NL80211_IFTYPE_AP:
|
case NL80211_IFTYPE_AP:
|
||||||
networkType = Ndis802_11APMode;
|
networkType = Ndis802_11APMode;
|
||||||
|
|
Loading…
Reference in a new issue