From 2e75049063ab5a2045dc02047b56accef73df3e4 Mon Sep 17 00:00:00 2001 From: litong Date: Thu, 10 Sep 2020 15:00:26 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/1755124 Reviewed-by: Lianlu Chen --- kernel/module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/module.c b/kernel/module.c index adceceb6c49f..b42faf5691c0 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -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