mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 08:13:52 +00:00
Fix build with Kernel 6.16: Rename from_timer() to timer_container_of()
This commit is contained in:
@@ -359,7 +359,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;
|
||||||
|
|||||||
Reference in New Issue
Block a user