r8101: fix build with kernel 6.6
This commit is contained in:
parent
79ce0aadcc
commit
ee3d2bd197
13
patches/011-fix-linux-6.6.patch
Normal file
13
patches/011-fix-linux-6.6.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- a/r8101_n.c
|
||||
+++ b/r8101_n.c
|
||||
@@ -69,6 +69,10 @@ This driver is modified from r8169.c in Linux kernel 2.6.18
|
||||
#include <linux/mdio.h>
|
||||
#endif
|
||||
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0)
|
||||
+# include <net/gso.h>
|
||||
+#endif
|
||||
+
|
||||
#include <asm/io.h>
|
||||
#include <asm/irq.h>
|
||||
|
Loading…
Reference in New Issue
Block a user