Skip to content

Commit

Permalink
Buildfix for Linux 5.17
Browse files Browse the repository at this point in the history
Buildfix for Linux 5.17
  • Loading branch information
kelebek333 committed Mar 9, 2022
1 parent 2ecdf4f commit eecd1cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions os_dep/osdep_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -1294,8 +1294,12 @@ u32 _rtw_down_sema(_sema *sema)
inline void thread_exit(_completion *comp)
{
#ifdef PLATFORM_LINUX
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
kthread_complete_and_exit(comp, 0);
#else
complete_and_exit(comp, 0);
#endif
#endif

#ifdef PLATFORM_FREEBSD
printf("%s", "RTKTHREAD_exit");
Expand Down

0 comments on commit eecd1cf

Please sign in to comment.