build/patch/misc/wireless-rtl8811cu-Fix-VFS-import.patch

27 lines
856 B
Diff

From 464a9b6932b78c6a0a3f7b559bc5506cf8187272 Mon Sep 17 00:00:00 2001
From: Muhammed Efe Cetin <efectn@protonmail.com>
Date: Wed, 1 Feb 2023 00:16:55 +0300
Subject: [PATCH 07/10] Fix VFS import
---
drivers/net/wireless/rtl8811cu/os_dep/osdep_service.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/rtl8811cu/os_dep/osdep_service.c b/drivers/net/wireless/rtl8811cu/os_dep/osdep_service.c
index f9f494d8c..62e664b78 100755
--- a/drivers/net/wireless/rtl8811cu/os_dep/osdep_service.c
+++ b/drivers/net/wireless/rtl8811cu/os_dep/osdep_service.c
@@ -27,6 +27,9 @@ atomic_t _malloc_size = ATOMIC_INIT(0);
#endif
#endif /* DBG_MEMORY_LEAK */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
+MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
+#endif
#if defined(PLATFORM_LINUX)
/*
--
2.39.1