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

27 lines
856 B
Diff
Raw Permalink Normal View History

From c7a22363d8890c0958007c6531739b5f5de5d075 Mon Sep 17 00:00:00 2001
From: Muhammed Efe Cetin <efectn@protonmail.com>
Date: Wed, 1 Feb 2023 00:10:59 +0300
Subject: [PATCH 02/10] Fix VFS import
---
drivers/net/wireless/rtl8189es/os_dep/osdep_service.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/rtl8189es/os_dep/osdep_service.c b/drivers/net/wireless/rtl8189es/os_dep/osdep_service.c
index d6d326aef..aa1f0499d 100644
--- a/drivers/net/wireless/rtl8189es/os_dep/osdep_service.c
+++ b/drivers/net/wireless/rtl8189es/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