From 09f261779d8544dfda02b786867a543f53901f7e Mon Sep 17 00:00:00 2001 From: morrownr Date: Mon, 18 Sep 2023 20:14:34 -0500 Subject: [PATCH] fix the -am_NOT_a_driver problem- --- os_dep/linux/os_intfs.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 7baa1d6..2325ee5 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -21,6 +21,15 @@ MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Realtek Wireless Lan Driver"); MODULE_AUTHOR("Realtek Semiconductor Corp."); MODULE_VERSION(DRIVERVERSION); +/* Include namespace when file system namespace errors occur during + * kernel build. This is about 'kernel_read' or 'kernel_write' + * + * This declaration was created to resolve an error on Rockchip. + * You can modify or add flags in the fs/Makefile. + */ +#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 /* module param defaults */ int rtw_chip_version = 0x00;