workaround for the error of "__symbol_put " undefined

ERROR: "__symbol_put" [../../motorola/kernel/modules/drivers/input/
	touchscreen/touchscreen_mmi/touchscreen_mmi.ko] undefined!
ERROR: "__symbol_get" [../../motorola/kernel/modules/drivers/input/
	touchscreen/touchscreen_mmi/touchscreen_mmi.ko] undefined!

Change-Id: I5ae7f9e395c61a1cd7f4b7ee7e914880ad767448
Reviewed-on: https://gerrit.mot.com/1745785
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1755124
Reviewed-by: Lianlu Chen <chenll4@lenovo.com>
This commit is contained in:
litong 2020-09-10 15:00:26 +08:00 • committed by Xiaojun Ji
commit 2e75049063

View file

@ -1086,6 +1086,8 @@ void __symbol_put(const char *symbol)
module_put(owner);
preempt_enable();
}
/* MMI_STOPSHIP: touchscreen: export the symbol for temp rebase */
EXPORT_SYMBOL(__symbol_put);
/* Note this assumes addr is a function, which it currently always is. */
void symbol_put_addr(void *addr)
@ -2320,6 +2322,8 @@ fail:
preempt_enable();
return NULL;
}
/* MMI_STOPSHIP: touchscreen: export the symbol for temp rebase */
EXPORT_SYMBOL(__symbol_get);
/*
* Ensure that an exported symbol [global namespace] does not already exist