mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-14 00:59:37 +00:00
changes for kernel v6.8
This commit is contained in:
parent
306f3e62cf
commit
a8aba44e14
3 changed files with 7 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -7,6 +7,8 @@ EXTRA_CFLAGS += -Wno-unused-parameter
|
||||||
EXTRA_CFLAGS += -Wno-unused-function
|
EXTRA_CFLAGS += -Wno-unused-function
|
||||||
EXTRA_CFLAGS += -Wno-unused
|
EXTRA_CFLAGS += -Wno-unused
|
||||||
EXTRA_CFLAGS += -Wno-uninitialized
|
EXTRA_CFLAGS += -Wno-uninitialized
|
||||||
|
EXTRA_CFLAGS += -Wno-missing-prototypes
|
||||||
|
EXTRA_CFLAGS += -Wno-missing-declarations
|
||||||
|
|
||||||
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
|
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
|
||||||
ifeq ($(GCC_VER_49),1)
|
ifeq ($(GCC_VER_49),1)
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
#include <hal_data.h>
|
#include <hal_data.h>
|
||||||
#include <rtw_debug.h>
|
#include <rtw_debug.h>
|
||||||
|
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0))
|
||||||
|
#define strlcpy strscpy
|
||||||
|
#endif
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
|
MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
|
||||||
MODULE_AUTHOR("Realtek Semiconductor Corp.");
|
MODULE_AUTHOR("Realtek Semiconductor Corp.");
|
||||||
|
|
|
@ -167,7 +167,7 @@ static struct rtw_usb_drv usb_drv = {
|
||||||
.usbdrv.supports_autosuspend = 1,
|
.usbdrv.supports_autosuspend = 1,
|
||||||
#endif
|
#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,
|
.usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
|
||||||
#else
|
#else
|
||||||
.usbdrv.driver.shutdown = rtw_dev_shutdown,
|
.usbdrv.driver.shutdown = rtw_dev_shutdown,
|
||||||
|
|
Loading…
Reference in a new issue