File kernel615.patch of Package r8101

diff -Naur r8101-1.039.00/src/r8101_n.c r8101-1.039.00n/src/r8101_n.c
--- r8101-1.039.00/src/r8101_n.c	2024-05-03 08:15:31.000000000 +0200
+++ r8101-1.039.00n/src/r8101_n.c	2025-07-10 18:12:54.621468818 +0200
@@ -86,6 +86,13 @@
 #include <linux/seq_file.h>
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,0)
+#define del_timer_sync timer_delete_sync
+#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,16,0)
+#define from_timer timer_container_of
+#endif
+
 #define _R(NAME,MAC,MASK) \
 	{ .name = NAME, .mcfg = MAC, .RxConfigMask = MASK }
 
openSUSE Build Service is sponsored by