From e7363dcf435b574043cd918a4abcbcfafc48499a Mon Sep 17 00:00:00 2001 From: 5kft <5kft@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:21:45 -0800 Subject: [PATCH] fix build warning for kernel v6.4+ --- include/osdep_service.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osdep_service.h b/include/osdep_service.h index 35988cc..40cf213 100644 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -408,7 +408,11 @@ static __inline void thread_enter(char *name) printf("%s", "RTKTHREAD_enter"); #endif } +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)) +void __noreturn thread_exit(_completion *comp); +#else void thread_exit(_completion *comp); +#endif void _rtw_init_completion(_completion *comp); void _rtw_wait_for_comp_timeout(_completion *comp); void _rtw_wait_for_comp(_completion *comp);