Skip to content
Snippets Groups Projects
Commit f6ca4176 authored by GONG, Ruiqi's avatar GONG, Ruiqi Committed by Cheng Jian
Browse files

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: 97c22788 ("cpuidle: fix container_of err in cpuidle_device and cpuidle_driver")
Signed-off-by: default avatarGONG, Ruiqi <gongruiqi1@huawei.com>
Cc: Jiajun Chen <chenjiajun8@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Reviewed-by: default avatarKeqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent e01c1bf7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment