File kernel68.patch of Package r8152
diff -U 3 -H -d -r -N -- a/Makefile b/Makefile
--- a/Makefile 2023-05-26 09:17:43.000000000 +0200
+++ b/Makefile 2024-01-31 14:50:29.889506544 +0100
@@ -4,6 +4,9 @@
CONFIG_CTAP_SHORT = ON
+ccflags-y += -Wno-missing-prototypes
+ccflags-y += -Wno-missing-declarations
+
ifneq ($(KERNELRELEASE),)
obj-m := r8152.o
# ccflags-y += -DRTL8152_S5_WOL
diff -U 3 -H -d -r -N -- a/r8152.c b/r8152.c
--- a/r8152.c 2023-06-13 09:19:38.000000000 +0200
+++ b/r8152.c 2024-01-31 14:51:54.239394107 +0100
@@ -31,6 +31,10 @@
#include <linux/acpi.h>
#include "compatibility.h"
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0))
+#define strlcpy strscpy
+#endif
+
// Linux 6.4.10 added net/gso.h
#if defined __has_include
#if __has_include (<net/gso.h>)