@@ -67,4 +67,16 @@ static inline void timer_setup(struct timer_list *timer,
__TIMER_INITIALIZER(_function, 0, 0, 0)
#endif
+/* This was backported to 4.19.312 and 5,4,274, but we do not support such high minor numbers use 255 instead. */
+#if LINUX_VERSION_IS_LESS(6,1,84) && \
+ !LINUX_VERSION_IN_RANGE(4,19,255, 4,20,0) && \
+ !LINUX_VERSION_IN_RANGE(5,4,255, 5,5,0) && \
+ !LINUX_VERSION_IN_RANGE(5,10,215, 5,11,0) && \
+ !LINUX_VERSION_IN_RANGE(5,15,154, 5,16,0)
+static inline int timer_delete_sync(struct timer_list *timer)
+{
+ return del_timer_sync(timer);
+}
+#endif /* < 6.1.84 */
+
#endif /* _BACKPORT_TIMER_H */
This function was renamed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- backport/backport-include/linux/timer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)