From f6ca417692d5d6e27aac34741bb59fe65bf5ed60 Mon Sep 17 00:00:00 2001 From: "GONG, Ruiqi" Date: Fri, 9 Jul 2021 10:22:09 +0800 Subject: [PATCH] cpuidle: fix a build error when compiling haltpoll into module hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I3ZURN CVE: NA -------- Kernel build would fail in case of CONFIG_HALTPOLL_CPUIDLE=m, caused by haltpoll_switch_governor() not marked as an exported symbol. Fix this by complementing the EXPORT_SYMBOL statement. Fixes: 97c227885e0a ("cpuidle: fix container_of err in cpuidle_device and cpuidle_driver") Signed-off-by: GONG, Ruiqi Cc: Jiajun Chen Reviewed-by: Xie XiuQi Reviewed-by: Keqian Zhu Signed-off-by: Cheng Jian --- drivers/cpuidle/driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index 484d0e9655fc..deb800be4902 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c @@ -259,6 +259,7 @@ void haltpoll_switch_governor(struct cpuidle_driver *drv) mutex_unlock(&cpuidle_lock); } } +EXPORT_SYMBOL_GPL(haltpoll_switch_governor); /** * cpuidle_register_driver - registers a driver -- GitLab