From c2f491f0e42c438a29b207e96429b4d76c581a03 Mon Sep 17 00:00:00 2001 From: Franz Eitzinger <43846023+etzngr@users.noreply.github.com> Date: Mon, 23 Jun 2025 09:41:18 +0200 Subject: [PATCH] Fix build with Kernel 6.16: Rename from_timer() to timer_container_of() --- include/osdep_service_linux.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h index 54ae65f..d812a9e 100644 --- a/include/osdep_service_linux.h +++ b/include/osdep_service_linux.h @@ -359,7 +359,9 @@ static inline void timer_hdl(struct timer_list *in_timer) static inline void timer_hdl(unsigned long cntx) #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); #else _timer *ptimer = (_timer *)cntx;