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 <zoujc@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xizx 2020-09-15 09:35:12 +08:00 • committed by Zhenxin Xi
commit b2bceb7a6d

View file

@ -2687,6 +2687,9 @@ static void __exit sec_ts_exit(void)
}
MODULE_AUTHOR("Hyobae, Ahn<hyobae.ahn@samsung.com>");
#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");