提交 d5f32697 编写于 作者: Y Yang Yingliang 提交者: Xie XiuQi

arm64: cpufeature: fix compile warning when LSE is disabled

hulk inclusion
category: bugfix
bugzilla: 23734
CVE: NA

------------------------

When LSE is disabled, I got this compile warning:
arch/arm64/kernel/cpufeature.c:852:13: warning: 'has_cpuid_feature_lse' defined but not used [-Wunused-function]
 static bool has_cpuid_feature_lse(const struct arm64_cpu_capabilities *entry,

Fix it by adding macro to has_cpuid_feature_lse().
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 b3b98991
......@@ -849,6 +849,7 @@ has_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope)
return feature_matches(val, entry);
}
#if defined(CONFIG_AS_LSE) && defined(CONFIG_ARM64_LSE_ATOMICS)
static bool has_cpuid_feature_lse(const struct arm64_cpu_capabilities *entry,
int scope)
{
......@@ -860,6 +861,7 @@ static bool has_cpuid_feature_lse(const struct arm64_cpu_capabilities *entry,
return has_cpuid_feature(entry, scope);
}
#endif
static bool has_useable_gicv3_cpuif(const struct arm64_cpu_capabilities *entry, int scope)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册