tree:
https://android.googlesource.com/kernel/common android-mainline
head: e209b3b88d9772ecd782d71c1ae7c5425dd20289
commit: e209b3b88d9772ecd782d71c1ae7c5425dd20289 [2/2] ANDROID: sched: add vendor hook for
correcting cpu capacity
config: arm64-randconfig-r022-20200820 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e209b3b88d9772ecd782d71c1ae7c5425dd20289
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/base/arch_topology.c: In function 'arch_set_freq_scale':
> drivers/base/arch_topology.c:47:2: error: implicit declaration of
function 'trace_android_vh_arch_set_freq_scale'; did you mean
'trace_android_rvh_arch_set_freq_scale'? [-Werror=implicit-function-declaration]
47 | trace_android_vh_arch_set_freq_scale(cur_freq, max_freq, &scale);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| trace_android_rvh_arch_set_freq_scale
cc1: some warnings being treated as errors
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-mainline
git checkout e209b3b88d9772ecd782d71c1ae7c5425dd20289
vim +47 drivers/base/arch_topology.c
30
31 void arch_set_freq_scale(struct cpumask *cpus, unsigned long cur_freq,
32 unsigned long max_freq)
33 {
34 unsigned long scale;
35 int i;
36
37 /*
38 * If the use of counters for FIE is enabled, just return as we don't
39 * want to update the scale factor with information from CPUFREQ.
40 * Instead the scale factor will be updated from arch_scale_freq_tick.
41 */
42 if (arch_freq_counters_available(cpus))
43 return;
44
45 scale = (cur_freq << SCHED_CAPACITY_SHIFT) / max_freq;
46
47 trace_android_vh_arch_set_freq_scale(cur_freq, max_freq,
&scale);
48
49 for_each_cpu(i, cpus)
50 per_cpu(freq_scale, i) = scale;
51 }
52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org