llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [peterz-queue:sched/core 1/1] arch/s390/kernel/topology.c:512:23: error: conflicting types for 'cpu_coregroup_mask'
@ 2025-08-25 19:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-25 19:23 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: llvm, oe-kbuild-all, K Prateek Nayak

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head:   6aa2edf8f340935f35e7be32f223792b028b574d
commit: 6aa2edf8f340935f35e7be32f223792b028b574d [1/1] sched/fair: Get rid of sched_domains_curr_level hack for tl->cpumask()
config: s390-randconfig-001-20250826 (https://download.01.org/0day-ci/archive/20250826/202508260328.jsXPrTzT-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project d26ea02060b1c9db751d188b2edb0059a9eb273d)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250826/202508260328.jsXPrTzT-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508260328.jsXPrTzT-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/s390/kernel/topology.c:512:23: error: conflicting types for 'cpu_coregroup_mask'
     512 | const struct cpumask *cpu_coregroup_mask(struct sched_domain_topology_level *tl, int cpu)
         |                       ^
   arch/s390/include/asm/topology.h:50:23: note: previous declaration is here
      50 | const struct cpumask *cpu_coregroup_mask(int cpu);
         |                       ^
>> arch/s390/kernel/topology.c:529:12: error: incompatible function pointer types initializing 'sched_domain_mask_f' (aka 'const struct cpumask *(*)(struct sched_domain_topology_level *, int)') with an expression of type 'const struct cpumask *(int)' [-Wincompatible-function-pointer-types]
     529 |         SDTL_INIT(cpu_coregroup_mask, cpu_core_flags, MC),
         |                   ^~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +/cpu_coregroup_mask +512 arch/s390/kernel/topology.c

   511	
 > 512	const struct cpumask *cpu_coregroup_mask(struct sched_domain_topology_level *tl, int cpu)
   513	{
   514		return &cpu_topology[cpu].core_mask;
   515	}
   516	
   517	static const struct cpumask *cpu_book_mask(struct sched_domain_topology_level *tl, int cpu)
   518	{
   519		return &cpu_topology[cpu].book_mask;
   520	}
   521	
   522	static const struct cpumask *cpu_drawer_mask(struct sched_domain_topology_level *tl, int cpu)
   523	{
   524		return &cpu_topology[cpu].drawer_mask;
   525	}
   526	
   527	static struct sched_domain_topology_level s390_topology[] = {
   528		SDTL_INIT(tl_smt_mask, cpu_smt_flags, SMT),
 > 529		SDTL_INIT(cpu_coregroup_mask, cpu_core_flags, MC),
   530		SDTL_INIT(cpu_book_mask, NULL, BOOK),
   531		SDTL_INIT(cpu_drawer_mask, NULL, DRAWER),
   532		SDTL_INIT(tl_pkg_mask, NULL, PKG),
   533		{ NULL, },
   534	};
   535	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-25 19:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 19:23 [peterz-queue:sched/core 1/1] arch/s390/kernel/topology.c:512:23: error: conflicting types for 'cpu_coregroup_mask' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).