diff --git a/core/rtw_btcoex.c b/core/rtw_btcoex.c index fe649f6..9edcfdb 100644 --- a/core/rtw_btcoex.c +++ b/core/rtw_btcoex.c @@ -1468,7 +1468,9 @@ u8 rtw_btcoex_sendmsgbysocket(_adapter *padapter, u8 *msg, u8 msg_size, bool for { u8 error; struct msghdr udpmsg; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)) mm_segment_t oldfs; +#endif struct iovec iov; struct bt_coex_info *pcoex_info = &padapter->coex_info; diff --git a/core/rtw_wlan_util.c b/core/rtw_wlan_util.c index e55e7e7..e6c5e76 100644 --- a/core/rtw_wlan_util.c +++ b/core/rtw_wlan_util.c @@ -4797,7 +4797,9 @@ int rtw_dev_nlo_info_set(struct pno_nlo_info *nlo_info, pno_ssid_t *ssid, int i = 0; struct file *fp; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)) mm_segment_t fs; +#endif loff_t pos = 0; u8 *source = NULL; long len = 0; diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index ff628fe..812429b 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -4261,7 +4261,9 @@ static int route_dump(u32 *gw_addr , int *gw_index) struct msghdr msg; struct iovec iov; struct sockaddr_nl nladdr; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)) mm_segment_t oldfs; +#endif char *pg; int size = 0; diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index 444185f..d320e08 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -2225,7 +2225,9 @@ static int isFileReadable(const char *path, u32 *sz) { struct file *fp; int ret = 0; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)) mm_segment_t oldfs; +#endif char buf; fp = filp_open(path, O_RDONLY, 0); @@ -2270,7 +2272,9 @@ static int isFileReadable(const char *path, u32 *sz) static int retriveFromFile(const char *path, u8 *buf, u32 sz) { int ret = -1; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)) mm_segment_t oldfs; +#endif struct file *fp; if (path && buf) { @@ -2313,7 +2317,9 @@ static int retriveFromFile(const char *path, u8 *buf, u32 sz) static int storeToFile(const char *path, u8 *buf, u32 sz) { int ret = 0; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)) mm_segment_t oldfs; +#endif struct file *fp; if (path && buf) {