소스 검색

Fix compilation on kernel 5.4.0+

MJaoune 5 년 전
부모
커밋
f136e53987
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      core/rtw_mlme_ext.c

+ 4 - 0
core/rtw_mlme_ext.c

@@ -709,7 +709,11 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
 				ptable->func = &OnAuth;
 			else
 				ptable->func = &OnAuthClient;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
 			__attribute__ ((fallthrough));
+#else
+			__attribute__ ((__fallthrough__));
+#endif
 		case WIFI_ASSOCREQ:
 		case WIFI_REASSOCREQ:
 			_mgt_dispatcher(padapter, ptable, precv_frame);