mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-21 20:13:39 +00:00
rtl8188eu: Fix build under kernel 5.17
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
9f723a04cb
commit
5cff05afbb
1 changed files with 4 additions and 0 deletions
|
@ -67,7 +67,11 @@ struct __queue {
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
|
||||||
#define thread_exit() complete_and_exit(NULL, 0)
|
#define thread_exit() complete_and_exit(NULL, 0)
|
||||||
|
#else
|
||||||
|
#define thread_exit() kthread_complete_and_exit(NULL, 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline struct list_head *get_list_head(struct __queue *queue)
|
static inline struct list_head *get_list_head(struct __queue *queue)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue