Created attachment 752670 [details] emerge --info '=sys-kernel/gentoo-sources-5.14.20' Failed to build with kernel/sched/alt_core.c:2765:6: error: conflicting types for ‘sched_post_fork’; have ‘void(struct task_struct *)’ 2765 | void sched_post_fork(struct task_struct *p) {} | ^~~~~~~~~~~~~~~ In file included from ./include/linux/sched/signal.h:9, from ./include/linux/rcuwait.h:6, from ./include/linux/percpu-rwsem.h:7, from ./include/linux/fs.h:33, from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:728, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/trace_events.h:21, from ./include/trace/define_trace.h:102, from ./include/trace/events/sched.h:738, from kernel/sched/alt_core.c:15: ./include/linux/sched/task.h:57:13: note: previous declaration of ‘sched_post_fork’ with type ‘void(struct task_struct *, struct kernel_clone_args *)’ 57 | extern void sched_post_fork(struct task_struct *p, | ^~~~~~~~~~~~~~~ CC kernel/trace/trace_nop.o make[2]: *** [scripts/Makefile.build:271: kernel/sched/alt_core.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Attaching emerge --info and kernel config
Created attachment 752674 [details] kernel config
Created attachment 752678 [details, diff] Fix function declaration Can you try this?
(In reply to Mike Pagano from comment #2) > Created attachment 752678 [details, diff] [details, diff] > Fix function declaration > > Can you try this? nevermind that's against 5.15. I'll commit a fix for 5.14
commit 17ecdd1bda59626c4d9ae901a5e75370cb8b3674 (HEAD -> 5.14, origin/5.14) Author: Mike Pagano <mpagano@gentoo.org> Date: Thu Nov 18 19:17:09 2021 -0500 Fix for BMQ(BitMap Queue) Scheduler Bug: https://bugs.gentoo.org/824586 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
I'm getting this exact bug with 5.15.3 too; 5.15.2 builds fine.
same problem 5.15.3 ... AR arch/x86/built-in.a CC kernel/sched/alt_core.o kernel/sched/alt_core.c:2997:6: error: conflicting types for ‘sched_post_fork’; have ‘void(struct task_struct *)’ 2997 | void sched_post_fork(struct task_struct *p) {} | ^~~~~~~~~~~~~~~ In file included from ./include/linux/sched/signal.h:9, from ./include/linux/rcuwait.h:6, from ./include/linux/percpu-rwsem.h:7, from ./include/linux/fs.h:33, from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:727, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/trace_events.h:21, from ./include/trace/define_trace.h:102, from ./include/trace/events/sched.h:738, from kernel/sched/alt_core.c:15: ./include/linux/sched/task.h:57:13: note: previous declaration of ‘sched_post_fork’ with type ‘void(struct task_struct *, struct kernel_clone_args *)’ 57 | extern void sched_post_fork(struct task_struct *p, | ^~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:277: kernel/sched/alt_core.o] Error 1 make[1]: *** [scripts/Makefile.build:540: kernel/sched] Error 2 make: *** [Makefile:1868: kernel] Error 2
commit 988c70b911d405821a00b9afa2728bf59e24d1bb (HEAD -> 5.15, origin/5.15) Author: Mike Pagano <mpagano@gentoo.org> Date: Fri Nov 19 09:51:23 2021 -0500 Fix for BMQ(BitMap Queue) Scheduler Bug: https://bugs.gentoo.org/824586 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Works fine, thanks.
*** Bug 825346 has been marked as a duplicate of this bug. ***
Upstream fix: https://gitlab.com/alfredchen/linux-prjc/-/commit/9ba8f42a10910dd40af229a22e00f00cbcee480b
Upgrade to 5.15 for BMQ. This kernel is EOL'd.