mirror of
https://github.com/gnab/rtl8812au
synced 2024-10-18 04:52:02 +00:00
Fix build on Ubuntu 22.04 / 5.15 kernel
Signed-off-by: Andriy Tkachuk <andriy.tkachuk@gmail.com>
This commit is contained in:
parent
212c0b328e
commit
a1c01a72cc
@ -554,6 +554,9 @@ _func_exit_;
|
|||||||
|
|
||||||
thread_exit();
|
thread_exit();
|
||||||
|
|
||||||
|
#ifdef PLATFORM_LINUX
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1179,6 +1179,10 @@ exit:
|
|||||||
pmptx->stop = 1;
|
pmptx->stop = 1;
|
||||||
|
|
||||||
thread_exit();
|
thread_exit();
|
||||||
|
|
||||||
|
#ifdef PLATFORM_LINUX
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void fill_txdesc_for_mp(PADAPTER padapter, struct tx_desc *ptxdesc)
|
void fill_txdesc_for_mp(PADAPTER padapter, struct tx_desc *ptxdesc)
|
||||||
|
@ -146,7 +146,11 @@
|
|||||||
typedef int thread_return;
|
typedef int thread_return;
|
||||||
typedef void* thread_context;
|
typedef void* thread_context;
|
||||||
|
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
|
||||||
#define thread_exit() kthread_complete_and_exit(NULL, 0)
|
#define thread_exit() kthread_complete_and_exit(NULL, 0)
|
||||||
|
#else
|
||||||
|
#define thread_exit() complete_and_exit(NULL, 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef void timer_hdl_return;
|
typedef void timer_hdl_return;
|
||||||
typedef void* timer_hdl_context;
|
typedef void* timer_hdl_context;
|
||||||
|
Loading…
Reference in New Issue
Block a user