laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/dahdi-linux/+/42006?usp=email )


Change subject: kernel.h: Add wrapper for renamed from_timer function.
......................................................................

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
Change-Id: I9d7e075f30cf041f266ac42d0a656f7aee5701cc
---
M include/dahdi/kernel.h
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/dahdi-linux refs/changes/06/42006/1

diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 1756aaf..47d92f5 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -77,6 +77,10 @@
 #define PDE_DATA(i)    pde_data(i)
 #endif

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
+#define from_timer timer_container_of
+#endif
+
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,0)
 #define del_timer timer_delete
 #define del_timer_sync timer_delete_sync

--
To view, visit https://gerrit.osmocom.org/c/dahdi-linux/+/42006?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: dahdi-linux
Gerrit-Branch: master
Gerrit-Change-Id: I9d7e075f30cf041f266ac42d0a656f7aee5701cc
Gerrit-Change-Number: 42006
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>

Reply via email to