package_kernel_r8152/patches/900-fix-build-for-linux-6.6.patch
sbwml c990fdfb1a r8152: use standard versioning
Signed-off-by: sbwml <admin@cooluc.com>
2024-05-27 01:14:18 +08:00

14 lines
321 B
Diff

--- a/r8152.c
+++ b/r8152.c
@@ -31,6 +31,10 @@
#include <linux/acpi.h>
#include "compatibility.h"
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0)
+# include <net/gso.h>
+#endif
+
/* Version Information */
#define DRIVER_VERSION "v2.17.1 (2023/06/13)"
#define DRIVER_AUTHOR "Realtek nic sw <nic_swsd@realtek.com>"