From b2bceb7a6d540d2fb019e71ba7fb840615215b17 Mon Sep 17 00:00:00 2001 From: xizx Date: Tue, 15 Sep 2020 09:35:12 +0800 Subject: [PATCH] sec_mmi: 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: [ 35.634756] sec_mmi: module uses symbol (kernel_read) from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it. [ 35.648698] sec_mmi: Unknown symbol kernel_read (err -22) Change-Id: Ic333a4c66115c15aa0994c1d2210eea62db88d32 Reviewed-on: https://gerrit.mot.com/1749485 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jichao Zou Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/input/touchscreen/sec_mmi/sec_ts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/sec_mmi/sec_ts.c b/drivers/input/touchscreen/sec_mmi/sec_ts.c index fb0393bacf4b..348d42555275 100644 --- a/drivers/input/touchscreen/sec_mmi/sec_ts.c +++ b/drivers/input/touchscreen/sec_mmi/sec_ts.c @@ -2687,6 +2687,9 @@ static void __exit sec_ts_exit(void) } MODULE_AUTHOR("Hyobae, Ahn"); +#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_DESCRIPTION("Samsung Electronics TouchScreen driver"); MODULE_LICENSE("GPL");