From 1b30de3269a43a0307795583961f66ccf00a126c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rin=20Cat=20=28=E9=88=B4=E7=8C=AB=29?= Date: Mon, 13 Jan 2025 17:16:28 -0500 Subject: [PATCH] Linux 6.13 compat: namespace to string --- README.md | 2 +- os_dep/osdep_service.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17f0599..6704dd2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # REALTEK RTL88x2B USB Linux Driver **Current Driver Version**: 5.13.1-30 -**Support Kernel**: 2.6.24 ~ 6.10 (with unofficial patches) +**Support Kernel**: 2.6.24 ~ 6.13 (with unofficial patches) Linux in-tree rtw8822bu driver is working in process, check [this](https://lore.kernel.org/lkml/20220518082318.3898514-1-s.hauer@pengutronix.de/) patchset. diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index a490028..e12dbfc 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -32,7 +32,9 @@ atomic_t _malloc_size = ATOMIC_INIT(0); #endif #endif /* DBG_MEMORY_LEAK */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0) +MODULE_IMPORT_NS("VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver"); +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); #endif