From b1c0c661dc4348e5a6129431e4aebf1f47bf38b7 Mon Sep 17 00:00:00 2001 From: morrownr Date: Wed, 2 Aug 2023 16:43:06 -0500 Subject: [PATCH] remove am_NOT_a_driver --- os_dep/osdep_service.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index a9b5a12..fc56358 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -2428,7 +2428,6 @@ static int readFile(struct file *fp, char *buf, int len) while (sum < len) { #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)) - MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); rlen = kernel_read(fp, buf + sum, len - sum, &fp->f_pos); #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)) rlen = __vfs_read(fp, buf + sum, len - sum, &fp->f_pos); @@ -2460,7 +2459,6 @@ static int writeFile(struct file *fp, char *buf, int len) while (sum < len) { #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)) - MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); wlen = kernel_write(fp, buf + sum, len - sum, &fp->f_pos); #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)) wlen = __vfs_write(fp, buf + sum, len - sum, &fp->f_pos); @@ -2705,7 +2703,7 @@ int rtw_is_file_readable(const char *path) else return _FALSE; #else -// RTW_INFO("%s() Android GKI prohibbit kernel_read, return _TRUE\n", __func__); + RTW_INFO("%s() Android GKI prohibbit kernel_read, return _TRUE\n", __func__); return _TRUE; #endif /* !defined(CONFIG_RTW_ANDROID_GKI) */ #else @@ -2729,7 +2727,7 @@ int rtw_is_file_readable_with_size(const char *path, u32 *sz) else return _FALSE; #else -// RTW_INFO("%s() Android GKI prohibbit kernel_read, return _TRUE\n", __func__); + RTW_INFO("%s() Android GKI prohibbit kernel_read, return _TRUE\n", __func__); *sz = 0; return _TRUE; #endif /* !defined(CONFIG_RTW_ANDROID_GKI) */