Skip to content

prjc_v5.15-r0.patch does not compile with 5.15.3

Error:

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 arch/x86/pci/direct.o

Note: task.h changed the declaration for sched_post_fork to:

extern void sched_post_fork(struct task_struct *p, struct kernel_clone_args *kargs);