From d7e228f2685d76848adc29d2a6eb5c39a58b089f Mon Sep 17 00:00:00 2001 From: a7301c Date: Sun, 20 Feb 2022 16:22:26 -0600 Subject: [PATCH] cyttsp5_core.c: Import namepace for "kernel_read" For build error from 8450 postCS6: 9573 ERROR: modpost: module parade_tma5xx_mmi_core uses symbol kernel_read from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it. 9574 ERROR: modpost: module parade_tma5xx_mmi_core uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it. Change-Id: I14cf7ee5284f2fbd378643262db7840da52bf7cf Signed-off-by: a7301c Reviewed-on: https://gerrit.mot.com/2195084 Reviewed-by: Qing Chang SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted --- drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c index bbc56bacfd29..9a9907832942 100644 --- a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c +++ b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c @@ -6863,5 +6863,8 @@ int cyttsp5_release(struct cyttsp5_core_data *cd) EXPORT_SYMBOL_GPL(cyttsp5_release); 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_DESCRIPTION("Parade TrueTouch(R) Standard Product Core Driver"); MODULE_AUTHOR("Parade Technologies ");