From b4793e9604b3819d0ff49c678c2623cb14467788 Mon Sep 17 00:00:00 2001 From: sbwml Date: Sun, 10 Dec 2023 23:45:10 +0800 Subject: [PATCH] r8152: fix build for linux-6.6 --- patches/900-fix-build-for-linux-6.6.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 patches/900-fix-build-for-linux-6.6.patch diff --git a/patches/900-fix-build-for-linux-6.6.patch b/patches/900-fix-build-for-linux-6.6.patch new file mode 100644 index 0000000..3d48ba4 --- /dev/null +++ b/patches/900-fix-build-for-linux-6.6.patch @@ -0,0 +1,15 @@ +diff --git a/r8152.c b/r8152.c +index 5d6df58..30e3dd5 100644 +--- a/r8152.c ++++ b/r8152.c +@@ -31,6 +31,10 @@ + #include + #include "compatibility.h" + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0) ++# include ++#endif ++ + /* Version Information */ + #define DRIVER_VERSION "v2.17.1 (2023/06/13)" + #define DRIVER_AUTHOR "Realtek nic sw "