From 720cb330b3a03cfee7beb320dcb11d70a5cdc3c2 Mon Sep 17 00:00:00 2001 From: ivanovborislav <81085106+ivanovborislav@users.noreply.github.com> Date: Tue, 29 Mar 2022 18:55:48 +0300 Subject: [PATCH] Added Kernel 5.17 support --- os_dep/osdep_service.c | 4 ++++ 1 file changed, 4 insertions(+) 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