mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2026-06-19 02:37:22 +01:00
fix build for kernel 6.15
This commit is contained in:
@@ -326,7 +326,11 @@ extern void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc);
|
||||
|
||||
__inline static unsigned char _cancel_timer_ex(_timer *ptimer)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0))
|
||||
return timer_delete_sync(ptimer);
|
||||
#else
|
||||
return del_timer_sync(ptimer);
|
||||
#endif
|
||||
}
|
||||
|
||||
static __inline void thread_enter(char *name)
|
||||
|
||||
@@ -304,7 +304,11 @@ __inline static void _set_timer(_timer *ptimer, u32 delay_time)
|
||||
|
||||
__inline static void _cancel_timer(_timer *ptimer, u8 *bcancelled)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0))
|
||||
timer_delete_sync(ptimer);
|
||||
#else
|
||||
del_timer_sync(ptimer);
|
||||
#endif
|
||||
*bcancelled = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user