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

From: kernel test robot

Date: Thu Mar 26 2026 - 13:02:33 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 linus/master v7.0-rc5 next-20260325]
[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: powerpc-randconfig-001-20260326 (https://download.01.org/0day-ci/archive/20260327/202603270017.gHZBIwsQ-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260327/202603270017.gHZBIwsQ-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/202603270017.gHZBIwsQ-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from include/linux/topology.h:30,
from include/linux/gfp.h:8,
from include/linux/sched/mm.h:9,
from arch/powerpc/kernel/smp.c:18:
>> 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/powerpc/kernel/smp.c:1767:5: note: in expansion of macro 'arch_asym_cpu_priority'
1767 | int arch_asym_cpu_priority(int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/arch_topology.h:132:19: note: previous definition of 'topology_arch_asym_cpu_priority' was here
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