Created attachment 692724 [details] kernel .config (kernel 5.11.8, Talos II) This happens when I choose SCHED_ALT, BMQ on my Talos II on kernel 5.11.8. Building without SCHED_ALT selected works fine. [...] # make CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh CHK include/generated/compile.h CC kernel/sched/alt_core.o kernel/sched/alt_core.c: In function ‘sched_init_topology_cpumask’: kernel/sched/alt_core.c:6358:43: error: implicit declaration of function ‘cpu_coregroup_mask’ [-Werror=implicit-function-declaration] 6358 | per_cpu(sd_llc_id, cpu) = cpumask_first(cpu_coregroup_mask(cpu)); | ^~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:6358:43: warning: passing argument 1 of ‘cpumask_first’ makes pointer from integer without a cast [-Wint-conversion] 6358 | per_cpu(sd_llc_id, cpu) = cpumask_first(cpu_coregroup_mask(cpu)); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int In file included from ./include/linux/smp.h:13, from ./include/linux/lockdep.h:14, from ./include/linux/rcupdate.h:29, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/kthread.h:6, from ./include/trace/events/sched.h:8, from kernel/sched/alt_core.c:15: ./include/linux/cpumask.h:222:64: note: expected ‘const struct cpumask *’ but argument is of type ‘int’ 222 | static inline unsigned int cpumask_first(const struct cpumask *srcp) | ~~~~~~~~~~~~~~~~~~~~~~^~~~ kernel/sched/alt_core.c:6360:31: warning: passing argument 3 of ‘cpumask_and’ makes pointer from integer without a cast [-Wint-conversion] 6360 | TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(cpu), false); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int kernel/sched/alt_core.c:6334:28: note: in definition of macro ‘TOPOLOGY_CPUMASK’ 6334 | if (cpumask_and(chk, chk, mask)) { \ | ^~~~ In file included from ./include/linux/smp.h:13, from ./include/linux/lockdep.h:14, from ./include/linux/rcupdate.h:29, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/kthread.h:6, from ./include/trace/events/sched.h:8, from kernel/sched/alt_core.c:15: ./include/linux/cpumask.h:432:33: note: expected ‘const struct cpumask *’ but argument is of type ‘int’ 432 | const struct cpumask *src2p) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ kernel/sched/alt_core.c:6360:31: warning: passing argument 2 of ‘cpumask_copy’ makes pointer from integer without a cast [-Wint-conversion] 6360 | TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(cpu), false); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int kernel/sched/alt_core.c:6335:22: note: in definition of macro ‘TOPOLOGY_CPUMASK’ 6335 | cpumask_copy(topo, mask); \ | ^~~~ In file included from ./include/linux/smp.h:13, from ./include/linux/lockdep.h:14, from ./include/linux/rcupdate.h:29, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/kthread.h:6, from ./include/trace/events/sched.h:8, from kernel/sched/alt_core.c:15: ./include/linux/cpumask.h:604:27: note: expected ‘const struct cpumask *’ but argument is of type ‘int’ 604 | const struct cpumask *srcp) | ~~~~~~~~~~~~~~~~~~~~~~^~~~ kernel/sched/alt_core.c:6360:31: warning: passing argument 2 of ‘cpumask_complement’ makes pointer from integer without a cast [-Wint-conversion] 6360 | TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(cpu), false); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int kernel/sched/alt_core.c:6340:27: note: in definition of macro ‘TOPOLOGY_CPUMASK’ 6340 | cpumask_complement(chk, mask) | ^~~~ In file included from ./include/linux/smp.h:13, from ./include/linux/lockdep.h:14, from ./include/linux/rcupdate.h:29, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/kthread.h:6, from ./include/trace/events/sched.h:8, from kernel/sched/alt_core.c:15: ./include/linux/cpumask.h:487:33: note: expected ‘const struct cpumask *’ but argument is of type ‘int’ 487 | const struct cpumask *srcp) | ~~~~~~~~~~~~~~~~~~~~~~^~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:279: kernel/sched/alt_core.o] Error 1 make[1]: *** [scripts/Makefile.build:496: kernel/sched] Error 2 make: *** [Makefile:1806: kernel] Error 2 # inxi -b System: Kernel: 5.11.7-gentoo-TalosII ppc64 bits: 64 Console: tty 0 Distro: Gentoo Base System release 2.7 Machine: Type: PowerPC Device System: T2P9D01 REV 1.01 details: PowerNV T2P9D01 REV 1.01 rev: 2.2 (pvr 004e 1202) CPU: Info: 32-Core POWER9 altivec supported [MCP] speed: 2154 MHz min/max: 2154/3800 MHz Graphics: Device-1: AMD Turks XT [Radeon HD 6670/7670] driver: radeon v: kernel Device-2: ASPEED Graphics Family driver: N/A Display: server: X.org 1.20.10 driver: ati,radeon unloaded: fbdev,modesetting tty: 104x53 Message: Advanced graphics data unavailable in console for root. Network: Device-1: Broadcom and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe driver: tg3 Device-2: Broadcom and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe driver: tg3
Created attachment 692727 [details] emerge --info
This is not support for your arch. I'll send this upstream.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cdafa85ce965e3986528cb17230e82e0bb91890 commit 9cdafa85ce965e3986528cb17230e82e0bb91890 Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2021-03-21 22:22:49 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2021-03-21 22:22:49 +0000 sys-kernel/gentoo-sources: Update to BMQ Patch for >= 5.11.8-r1 Set defaults for BMQ. Add archs as people test and report success and set the SCHED_ALT default to N Closes: https://bugs.gentoo.org/777522 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Mike Pagano <mpagano@gentoo.org> sys-kernel/gentoo-sources/Manifest | 3 +++ .../gentoo-sources/gentoo-sources-5.11.8-r1.ebuild | 28 ++++++++++++++++++++++ 2 files changed, 31 insertions(+)