浏览代码

fix build warning for kernel v6.4+

5kft 2 年之前
父节点
当前提交
e7363dcf43
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/osdep_service.h

+ 4 - 0
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);