mbox series

[v2,0/1] cpufreq: CPPC: Fix unused-function warning

Message ID 20220530100424.103301-1-pierre.gondois@arm.com (mailing list archive)
Headers show
Series cpufreq: CPPC: Fix unused-function warning | expand

Message

Pierre Gondois May 30, 2022, 10:04 a.m. UTC
v2:
- Put the Energy Model related functions inside specific guards
  instead of using the '__maybe_unused' flag.

A warning was reported when the cppc_cpufreq driver is built
with CONFIG_ENERGY_MODEL=n at:
https://lore.kernel.org/all/626c99d3-edaf-4544-7e64-5b3653591086@hisilicon.com/

The patch should be applied on top of:
https://lore.kernel.org/all/20220521032438.2504155-1-zhengbin13@huawei.com/

Pierre Gondois (1):
  cpufreq: CPPC: Fix unused-function warning

 drivers/cpufreq/cppc_cpufreq.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)