Linux 6.16 compat: more timers name change

Signed-off-by: Rin Cat (鈴猫) <rincat@rincat.dev>
This commit is contained in:
Rin Cat (鈴猫) 2025-06-11 03:20:47 -04:00
parent fcf8bf2936
commit 77a82dbac7
Signed by: RinCat
GPG Key ID: 4B857E8B2AFC09BC

View File

@ -357,7 +357,9 @@ static inline void timer_hdl(struct timer_list *in_timer)
static inline void timer_hdl(unsigned long cntx) static inline void timer_hdl(unsigned long cntx)
#endif #endif
{ {
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
_timer *ptimer = timer_container_of(ptimer, in_timer, timer);
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
_timer *ptimer = from_timer(ptimer, in_timer, timer); _timer *ptimer = from_timer(ptimer, in_timer, timer);
#else #else
_timer *ptimer = (_timer *)cntx; _timer *ptimer = (_timer *)cntx;