diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2022-05-21 11:24:38 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-05-30 15:31:28 +0200 |
commit | a3f083e04a87662559bbadddc02f4739b78e743a (patch) | |
tree | 1a9e8d3a43003e17afe5ff56ce6b61f5e607dce0 /lib/zlib_inflate | |
parent | 990247af7cf59190271da405458aefaed985e831 (diff) | |
download | linux-a3f083e04a87662559bbadddc02f4739b78e743a.tar.bz2 |
cpufreq: CPPC: Fix build error without CONFIG_ACPI_CPPC_CPUFREQ_FIE
If CONFIG_ACPI_CPPC_CPUFREQ_FIE is not set, building fails:
drivers/cpufreq/cppc_cpufreq.c: In function ‘populate_efficiency_class’:
drivers/cpufreq/cppc_cpufreq.c:584:2: error: ‘cppc_cpufreq_driver’ undeclared (first use in this function); did you mean ‘cpufreq_driver’?
cppc_cpufreq_driver.register_em = cppc_cpufreq_register_em;
^~~~~~~~~~~~~~~~~~~
cpufreq_driver
Make declare of cppc_cpufreq_driver out of CONFIG_ACPI_CPPC_CPUFREQ_FIE
to fix this.
Fixes: 740fcdc2c20e ("cpufreq: CPPC: Register EM based on efficiency class information")
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/zlib_inflate')
0 files changed, 0 insertions, 0 deletions