rtl8188eu: Fix build on kernel 5.1

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2019-03-20 10:38:23 -05:00
parent fca9048241
commit 2243b25597
2 changed files with 3 additions and 6 deletions

View file

@ -650,7 +650,6 @@ union recv_frame *decryptor(_adapter *padapter, union recv_frame *precv_frame)
return return_packet; return return_packet;
} }
/* ###set the security information in the recv_frame */ /* ###set the security information in the recv_frame */
union recv_frame *portctrl(_adapter *adapter, union recv_frame *precv_frame);
union recv_frame *portctrl(_adapter *adapter, union recv_frame *precv_frame) union recv_frame *portctrl(_adapter *adapter, union recv_frame *precv_frame)
{ {
u8 *psta_addr = NULL; u8 *psta_addr = NULL;
@ -2309,7 +2308,6 @@ exiting:
} }
/* perform defrag */ /* perform defrag */
union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q);
union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q) union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q)
{ {
_list *plist, *phead; _list *plist, *phead;
@ -2319,7 +2317,6 @@ union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q)
union recv_frame *prframe, *pnextrframe; union recv_frame *prframe, *pnextrframe;
_queue *pfree_recv_queue; _queue *pfree_recv_queue;
curfragnum = 0; curfragnum = 0;
pfree_recv_queue = &adapter->recvpriv.free_recv_queue; pfree_recv_queue = &adapter->recvpriv.free_recv_queue;

View file

@ -1115,7 +1115,7 @@ static int isFileReadable(const char *path, u32 *sz)
ret = PTR_ERR(fp); ret = PTR_ERR(fp);
else { else {
oldfs = get_fs(); oldfs = get_fs();
set_fs(get_ds()); set_fs(KERNEL_DS);
if (1 != readFile(fp, &buf, 1)) if (1 != readFile(fp, &buf, 1))
ret = PTR_ERR(fp); ret = PTR_ERR(fp);
@ -1153,7 +1153,7 @@ static int retriveFromFile(const char *path, u8 *buf, u32 sz)
RTW_INFO("%s openFile path:%s fp=%p\n", __func__, path , fp); RTW_INFO("%s openFile path:%s fp=%p\n", __func__, path , fp);
oldfs = get_fs(); oldfs = get_fs();
set_fs(get_ds()); set_fs(KERNEL_DS);
ret = readFile(fp, buf, sz); ret = readFile(fp, buf, sz);
set_fs(oldfs); set_fs(oldfs);
closeFile(fp); closeFile(fp);
@ -1188,7 +1188,7 @@ static int storeToFile(const char *path, u8 *buf, u32 sz)
RTW_INFO("%s openFile path:%s fp=%p\n", __func__, path , fp); RTW_INFO("%s openFile path:%s fp=%p\n", __func__, path , fp);
oldfs = get_fs(); oldfs = get_fs();
set_fs(get_ds()); set_fs(KERNEL_DS);
ret = writeFile(fp, buf, sz); ret = writeFile(fp, buf, sz);
set_fs(oldfs); set_fs(oldfs);
closeFile(fp); closeFile(fp);