tree:
https://git.gitlab.arm.com/linux-arm/linux-iv.git topic/v1_acpi_cpu_capacity
head: eece74e8aaac3da75e29d0d24730d90c85c7b0ea
commit: eece74e8aaac3da75e29d0d24730d90c85c7b0ea [2/2] arch_topology: obtain cpu capacity
using information from CPPC
config: x86_64-randconfig-r013-20210512 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
a0fed635fe1701470062495a6ffee1c608f3f1bc)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add linux-iv
https://git.gitlab.arm.com/linux-arm/linux-iv.git
git fetch --no-tags linux-iv topic/v1_acpi_cpu_capacity
git checkout eece74e8aaac3da75e29d0d24730d90c85c7b0ea
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:20:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:9:
In file included from include/linux/topology.h:36:
> arch/x86/include/asm/topology.h:223:9: warning:
'arch_init_invariance_cppc' macro redefined [-Wmacro-redefined]
#define
arch_init_invariance_cppc init_freq_invariance_cppc
^
include/linux/arch_topology.h:16:9: note: previous definition is here
#define arch_init_invariance_cppc init_cpu_capacity_cppc
^
1 warning generated.
--
In file included from kernel/time/hrtimer.c:25:
In file included from include/linux/cpu.h:17:
In file included from include/linux/node.h:18:
In file included from include/linux/device.h:16:
In file included from include/linux/energy_model.h:7:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:19:
In file included from include/linux/xarray.h:14:
In file included from include/linux/gfp.h:9:
In file included from include/linux/topology.h:36:
> arch/x86/include/asm/topology.h:223:9: warning:
'arch_init_invariance_cppc' macro redefined [-Wmacro-redefined]
#define
arch_init_invariance_cppc init_freq_invariance_cppc
^
include/linux/arch_topology.h:16:9: note: previous definition is here
#define arch_init_invariance_cppc init_cpu_capacity_cppc
^
kernel/time/hrtimer.c:120:21: warning: initializer overrides prior initialization of
this subobject [-Winitializer-overrides]
[CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:121:22: warning: initializer overrides prior initialization of
this subobject [-Winitializer-overrides]
[CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
^~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:122:21: warning: initializer overrides prior initialization of
this subobject [-Winitializer-overrides]
[CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:123:17: warning: initializer overrides prior initialization of
this subobject [-Winitializer-overrides]
[CLOCK_TAI] = HRTIMER_BASE_TAI,
^~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:147:20: warning: unused function 'is_migration_base'
[-Wunused-function]
static inline bool is_migration_base(struct hrtimer_clock_base *base)
^
6 warnings generated.
--
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:20:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:9:
In file included from include/linux/topology.h:36:
> arch/x86/include/asm/topology.h:223:9: warning:
'arch_init_invariance_cppc' macro redefined [-Wmacro-redefined]
#define
arch_init_invariance_cppc init_freq_invariance_cppc
^
include/linux/arch_topology.h:16:9: note: previous definition is here
#define arch_init_invariance_cppc init_cpu_capacity_cppc
^
1 warning generated.
vim +/arch_init_invariance_cppc +223 arch/x86/include/asm/topology.h
1567c3e3467cdd Giovanni Gherdovich 2020-01-22 220
41ea667227bad5 Nathan Fontenot 2020-11-12 221 #ifdef CONFIG_ACPI_CPPC_LIB
41ea667227bad5 Nathan Fontenot 2020-11-12 222 void init_freq_invariance_cppc(void);
3efe78be8d652a Ionela Voinescu 2021-03-18 @223 #define arch_init_invariance_cppc
init_freq_invariance_cppc
41ea667227bad5 Nathan Fontenot 2020-11-12 224 #endif
41ea667227bad5 Nathan Fontenot 2020-11-12 225
:::::: The code at line 223 was first introduced by commit
:::::: 3efe78be8d652a157bd19b6dbd371a2762f953d2 x86, ACPI: rename
init_freq_invariance_cppc to arch_init_invariance_cppc
:::::: TO: Ionela Voinescu <ionela.voinescu(a)arm.com>
:::::: CC: Ionela Voinescu <ionela.voinescu(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org