Re: [PATCH 1/3] sched/topology: Introduce arch hooks for asympacking

From: kernel test robot

Date: Thu Mar 26 2026 - 11:38:01 EST


Hi Christian,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/sched/core]
[also build test ERROR on arm64/for-next/core driver-core/driver-core-testing driver-core/driver-core-next driver-core/driver-core-linus peterz-queue/sched/core next-20260325]
[cannot apply to linus/master v6.16-rc1]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Christian-Loehle/sched-topology-Introduce-arch-hooks-for-asympacking/20260326-145644
base: tip/sched/core
patch link: https://lore.kernel.org/r/20260325181314.3875909-2-christian.loehle%40arm.com
patch subject: [PATCH 1/3] sched/topology: Introduce arch hooks for asympacking
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260326/202603261609.fazAo3mx-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260326/202603261609.fazAo3mx-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603261609.fazAo3mx-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from include/linux/topology.h:30,
from include/linux/sched/topology.h:5,
from include/linux/cpuset.h:13,
from arch/x86/kernel/itmt.c:21:
>> include/linux/arch_topology.h:131:32: error: redefinition of 'topology_arch_asym_cpu_priority'
131 | #define arch_asym_cpu_priority topology_arch_asym_cpu_priority
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/itmt.c:168:5: note: in expansion of macro 'arch_asym_cpu_priority'
168 | int arch_asym_cpu_priority(int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/arch_topology.h:132:19: note: previous definition of 'topology_arch_asym_cpu_priority' with type 'int(int)'
132 | static inline int topology_arch_asym_cpu_priority(int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/topology_arch_asym_cpu_priority +131 include/linux/arch_topology.h

125
126 /*
127 * Architectures may override this to provide a custom CPU priority for
128 * asymmetric packing.
129 */
130 #ifndef arch_asym_cpu_priority
> 131 #define arch_asym_cpu_priority topology_arch_asym_cpu_priority
132 static inline int topology_arch_asym_cpu_priority(int cpu)
133 {
134 return -cpu;
135 }
136 #endif
137

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki