tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head: f2f22593045822a03790f0ce8eb19b92b42ddad0
commit: 22c87b0e3450de1a614ff56f3cb0da0eda97e8a2 [43/45] arch_topology, sched/core:
Cleanup thermal pressure definition
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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 22c87b0e3450de1a614ff56f3cb0da0eda97e8a2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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:59:6: error: redefinition of
'arch_set_thermal_pressure'
59 | void arch_set_thermal_pressure(const
struct cpumask *cpus,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/base/arch_topology.c:16:
include/linux/sched/topology.h:237:6: note: previous definition of
'arch_set_thermal_pressure' was here
237 | void arch_set_thermal_pressure(const struct cpumask *cpus,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/arch_set_thermal_pressure +59 drivers/base/arch_topology.c
58
59 void arch_set_thermal_pressure(const struct cpumask *cpus,
60 unsigned long th_pressure)
61 {
62 int cpu;
63
64 for_each_cpu(cpu, cpus)
65 WRITE_ONCE(per_cpu(thermal_pressure, cpu), th_pressure);
66 }
67
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org