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

28 lines
891 B
Diff
Raw Normal View History

From 80eeb7d55699a0e7e04c5b18f23a3774cdaa1615 Mon Sep 17 00:00:00 2001
From: Muhammed Efe Cetin <efectn@protonmail.com>
Date: Wed, 1 Feb 2023 00:16:41 +0300
Subject: [PATCH 06/10] Fix VFS import
---
drivers/net/wireless/rtl8723du/os_dep/osdep_service.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/wireless/rtl8723du/os_dep/osdep_service.c b/drivers/net/wireless/rtl8723du/os_dep/osdep_service.c
index ed9c912cb..a4686dffa 100644
--- a/drivers/net/wireless/rtl8723du/os_dep/osdep_service.c
+++ b/drivers/net/wireless/rtl8723du/os_dep/osdep_service.c
@@ -7,6 +7,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
+
/*
* Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
* @return: one of RTW_STATUS_CODE
--
2.39.1