diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index 98e8bd8..94ca8a3 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -1309,7 +1309,11 @@ u32 _rtw_down_sema(_sema *sema) inline void thread_exit(_completion *comp) { #ifdef PLATFORM_LINUX +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)) complete_and_exit(comp, 0); +#else + kthread_complete_and_exit(comp, 0); +#endif #endif #ifdef PLATFORM_FREEBSD