From fe672a8cb8542021dae396ec73073dba14c4912b Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Mon, 8 Apr 2024 14:46:48 +0800 Subject: [PATCH] r8101: fix build with kernel 6.6 Signed-off-by: Tianling Shen --- package/kernel/r8101/Makefile | 2 +- package/kernel/r8101/patches/020-6.6-support.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 package/kernel/r8101/patches/020-6.6-support.patch diff --git a/package/kernel/r8101/Makefile b/package/kernel/r8101/Makefile index c946ee922f..a8cd82b981 100644 --- a/package/kernel/r8101/Makefile +++ b/package/kernel/r8101/Makefile @@ -7,7 +7,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=r8101 PKG_VERSION:=1.038.02 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@IMMORTALWRT diff --git a/package/kernel/r8101/patches/020-6.6-support.patch b/package/kernel/r8101/patches/020-6.6-support.patch new file mode 100644 index 0000000000..516e5a03e6 --- /dev/null +++ b/package/kernel/r8101/patches/020-6.6-support.patch @@ -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 + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10) ++#include ++#endif ++ + #include + #include +