From ca04a28583db36237ccef662fd419c6c74626966 Mon Sep 17 00:00:00 2001 From: xizx Date: Tue, 15 Sep 2020 08:32:10 +0800 Subject: [PATCH] utags: import ANDROID_GKI_VFS_EXPORT_ONLY namespace for kernel_read kernel_read and kernel_write are exported with specific ANDROID_GKI_VFS_EXPORT_ONLY namespace, so the DLKM should import the namespace. error log: [ 12.547678] utags: module uses symbol (kernel_read) from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it. [ 12.561432] utags: Unknown symbol kernel_read (err -22) Change-Id: I14607da4198c41ddb989d63cc02e560ffc50be11 Reviewed-on: https://gerrit.mot.com/1749451 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- drivers/misc/utag/utags.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/misc/utag/utags.c b/drivers/misc/utag/utags.c index 311f9e39f370..d76f340639f7 100644 --- a/drivers/misc/utag/utags.c +++ b/drivers/misc/utag/utags.c @@ -2087,5 +2087,8 @@ late_initcall(utags_init); module_exit(utags_exit); MODULE_LICENSE("GPL"); +#if KERNEL_VERSION(5, 4, 0) <= LINUX_VERSION_CODE +MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); +#endif MODULE_AUTHOR("Motorola Mobility LLC"); MODULE_DESCRIPTION("Configuration module");