Skip to content

Commit 9baf903

Browse files
committed
kernel.h: Add wrapper for renamed from_timer function.
from_timer was renamed to timer_container_of in kernel commit 41cb08555c4164996d67c78b3bf1c658075b75f1 as part of updates to the timer APIs. Add a compatibility wrapper for kernels >= 6.16.0. Resolves: #95
1 parent 648016d commit 9baf903

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/dahdi/kernel.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858

5959
#include <linux/poll.h>
6060

61+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
62+
#define from_timer timer_container_of
63+
#endif
64+
6165
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
6266
#define netif_napi_add netif_napi_add_weight
6367
#elif defined(RHEL_RELEASE_VERSION) && defined(RHEL_RELEASE_CODE)

0 commit comments

Comments
 (0)