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-r033-20200820 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
4deda57106f7c9b982a49cb907c33e3966c8de7f)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git checkout e209b3b88d9772ecd782d71c1ae7c5425dd20289
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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:47:2: error: implicit declaration of
function 'trace_android_vh_arch_set_freq_scale'
[-Werror,-Wimplicit-function-declaration]
trace_android_vh_arch_set_freq_scale(cur_freq, max_freq, &scale);
^
1 error generated.
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-mainline
git checkout e209b3b88d9772ecd782d71c1ae7c5425dd20289
vim +/trace_android_vh_arch_set_freq_scale +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