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

28 lines
877 B
Diff
Raw Permalink Normal View History

From 79b8702e455641e628027bc765798083974a2911 Mon Sep 17 00:00:00 2001
From: Muhammed Efe Cetin <efectn@protonmail.com>
Date: Wed, 1 Feb 2023 00:16:09 +0300
Subject: [PATCH 05/10] Fix VFS import
---
drivers/net/wireless/rtl8723ds/os_dep/osdep_service.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/wireless/rtl8723ds/os_dep/osdep_service.c b/drivers/net/wireless/rtl8723ds/os_dep/osdep_service.c
index cb5ff6940..c7c84cca0 100644
--- a/drivers/net/wireless/rtl8723ds/os_dep/osdep_service.c
+++ b/drivers/net/wireless/rtl8723ds/os_dep/osdep_service.c
@@ -25,6 +25,10 @@
#define RT_TAG '1178'
+#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
+
#ifdef DBG_MEMORY_LEAK
atomic_t _malloc_cnt = ATOMIC_INIT(0);
atomic_t _malloc_size = ATOMIC_INIT(0);
--
2.39.1