File kernel68.patch of Package rtl8852bu

diff -U 3 -H -d -r -N -- a/Makefile b/Makefile
--- a/Makefile	2024-01-31 13:13:25.494931413 +0100
+++ b/Makefile	2024-01-31 13:09:45.536422210 +0100
@@ -15,6 +15,8 @@
 EXTRA_CFLAGS += -Wno-unused
 #EXTRA_CFLAGS += -Wno-uninitialized
 EXTRA_CFLAGS += -Wno-implicit-fallthrough
+EXTRA_CFLAGS += -Wno-missing-prototypes
+EXTRA_CFLAGS += -Wno-missing-declarations
 
 # gcc-12
 EXTRA_CFLAGS += -Wno-address
diff -U 3 -H -d -r -N -- a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
--- a/os_dep/linux/os_intfs.c	2024-01-31 13:13:25.590929017 +0100
+++ b/os_dep/linux/os_intfs.c	2024-01-31 13:10:34.547198761 +0100
@@ -16,6 +16,10 @@
 
 #include <drv_types.h>
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0))
+#define strlcpy strscpy
+#endif
+
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
 MODULE_AUTHOR("Realtek Semiconductor Corp.");
diff -U 3 -H -d -r -N -- a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c
--- a/os_dep/linux/usb_intf.c	2024-01-31 13:13:25.590929017 +0100
+++ b/os_dep/linux/usb_intf.c	2024-01-31 13:11:22.122011159 +0100
@@ -215,7 +215,7 @@
 	.usbdrv.reset_resume   = rtw_dev_resume,
 #endif
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0))
 	.usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
 #else
 	.usbdrv.driver.shutdown = rtw_dev_shutdown,
openSUSE Build Service is sponsored by