2
0
mirror of https://github.com/cilynx/rtl88x2bu synced 2025-08-22 02:01:55 +00:00

fix: Add __noreturn attribute to thread_exit

There was a linker warning on Linux 6.15.1, which was fixed by adding
this attribute. Compiling the driver with this attribute worked for
Linux 6.12.30 too. To be on the safe side, this attribute won't be added
for older kernels.
This commit is contained in:
Max Görner 2025-06-09 13:29:19 +02:00
parent 6b4a254b95
commit 2f8747088d

View File

@ -421,7 +421,11 @@ static __inline void thread_enter(char *name)
printf("%s", "RTKTHREAD_enter");
#endif
}
#if defined(PLATFORM_LINUX) && LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0)
__noreturn void 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);