r8101: fix build with kernel 6.6
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
c3f9efdcd0
commit
fe672a8cb8
@ -7,7 +7,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
|
|
||||||
PKG_NAME:=r8101
|
PKG_NAME:=r8101
|
||||||
PKG_VERSION:=1.038.02
|
PKG_VERSION:=1.038.02
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@IMMORTALWRT
|
PKG_SOURCE_URL:=@IMMORTALWRT
|
||||||
|
13
package/kernel/r8101/patches/020-6.6-support.patch
Normal file
13
package/kernel/r8101/patches/020-6.6-support.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
--- a/src/r8101_n.c
|
||||||
|
+++ b/src/r8101_n.c
|
||||||
|
@@ -69,6 +69,10 @@ This driver is modified from r8169.c in
|
||||||
|
#include <linux/mdio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10)
|
||||||
|
+#include <net/gso.h>
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include <asm/io.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user