From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
K Prateek Nayak <kprateek.nayak@amd.com>
Subject: [peterz-queue:sched/core 1/1] arch/s390/kernel/topology.c:512:23: error: conflicting types for 'cpu_coregroup_mask'
Date: Tue, 26 Aug 2025 03:23:19 +0800 [thread overview]
Message-ID: <202508260328.jsXPrTzT-lkp@intel.com> (raw)
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
reply other threads:[~2025-08-25 19:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202508260328.jsXPrTzT-lkp@intel.com \
--to=lkp@intel.com \
--cc=kprateek.nayak@amd.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).