* [rafael-pm:intel_pstate-testing 14/14] drivers/cpufreq/intel_pstate.c:963:2: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations
@ 2024-03-28 14:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-28 14:08 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: llvm, oe-kbuild-all, linux-acpi, devel, linux-pm
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git intel_pstate-testing
head: 16303764deedb814defe7e69712edec6a09b50ad
commit: 16303764deedb814defe7e69712edec6a09b50ad [14/14] cpufreq: intel_pstate: Set asymmetric CPU capacity on hybrid systems
config: i386-defconfig (https://download.01.org/0day-ci/archive/20240328/202403282240.I0XCTxpL-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240328/202403282240.I0XCTxpL-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403282240.I0XCTxpL-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/cpufreq/intel_pstate.c:963:2: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
963 | arch_set_cpu_capacity(cpu->cpu, cap);
| ^
drivers/cpufreq/intel_pstate.c:963:2: note: did you mean 'arch_scale_cpu_capacity'?
include/linux/sched/topology.h:267:15: note: 'arch_scale_cpu_capacity' declared here
267 | unsigned long arch_scale_cpu_capacity(int cpu)
| ^
drivers/cpufreq/intel_pstate.c:1008:3: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1008 | arch_set_cpu_capacity(max_perf_cpu->cpu, SCHED_CAPACITY_SCALE);
| ^
drivers/cpufreq/intel_pstate.c:1014:4: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1014 | arch_set_cpu_capacity(cpunum, SCHED_CAPACITY_SCALE);
| ^
drivers/cpufreq/intel_pstate.c:1073:3: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1073 | arch_set_cpu_capacity(cpu->cpu, SCHED_CAPACITY_SCALE);
| ^
drivers/cpufreq/intel_pstate.c:1207:2: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1207 | arch_set_cpu_capacity(cpu->cpu, SCHED_CAPACITY_SCALE);
| ^
5 errors generated.
vim +/arch_set_cpu_capacity +963 drivers/cpufreq/intel_pstate.c
957
958 static void hybrid_set_cpu_capacity(struct cpudata *cpu)
959 {
960 u64 cap = div_u64((u64)SCHED_CAPACITY_SCALE * cpu->capacity_perf,
961 hybrid_max_perf_cpu->capacity_perf);
962
> 963 arch_set_cpu_capacity(cpu->cpu, cap);
964 }
965
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-28 14:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-28 14:08 [rafael-pm:intel_pstate-testing 14/14] drivers/cpufreq/intel_pstate.c:963:2: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox