Merge pull request #129 from chewitt/es-6.16

[ES] fix build for kernel 6.16.y
This commit is contained in:
Carlos Garcés
2025-06-21 12:43:52 +02:00
committed by GitHub

View File

@@ -370,7 +370,11 @@ 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(4, 14, 0))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
_timer *ptimer = timer_container_of(ptimer, in_timer, timer);
#else
_timer *ptimer = from_timer(ptimer, in_timer, timer); _timer *ptimer = from_timer(ptimer, in_timer, timer);
#endif
#else #else
_timer *ptimer = (_timer *)cntx; _timer *ptimer = (_timer *)cntx;
#endif #endif