Fix build on Ubuntu 22.04 / 5.15 kernel

Signed-off-by: Andriy Tkachuk <andriy.tkachuk@gmail.com>
This commit is contained in:
Andriy Tkachuk 2022-07-03 17:53:09 +01:00
parent 212c0b328e
commit a1c01a72cc
3 changed files with 11 additions and 0 deletions

View File

@ -554,6 +554,9 @@ _func_exit_;
thread_exit();
#ifdef PLATFORM_LINUX
return 0;
#endif
}

View File

@ -1179,6 +1179,10 @@ exit:
pmptx->stop = 1;
thread_exit();
#ifdef PLATFORM_LINUX
return 0;
#endif
}
void fill_txdesc_for_mp(PADAPTER padapter, struct tx_desc *ptxdesc)

View File

@ -146,7 +146,11 @@
typedef int thread_return;
typedef void* thread_context;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 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_context;