sched_ext: Add missing cfi stub for ops.tick
authorTejun Heo <tj@kernel.org>
Wed, 28 Aug 2024 00:17:20 +0000 (14:17 -1000)
committerTejun Heo <tj@kernel.org>
Wed, 28 Aug 2024 00:19:03 +0000 (14:19 -1000)
The cfi stub for ops.tick was missing which will fail scheduler loading
after pending BPF changes. Add it.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c

index b9bf9ee5ed01ae3e130a522130cb7ae377e00b9d..57f30b1604db928c2789a4a66b6bc1100150bbb9 100644 (file)
@@ -5051,6 +5051,7 @@ static s32 select_cpu_stub(struct task_struct *p, s32 prev_cpu, u64 wake_flags)
 static void enqueue_stub(struct task_struct *p, u64 enq_flags) {}
 static void dequeue_stub(struct task_struct *p, u64 enq_flags) {}
 static void dispatch_stub(s32 prev_cpu, struct task_struct *p) {}
+static void tick_stub(struct task_struct *p) {}
 static void runnable_stub(struct task_struct *p, u64 enq_flags) {}
 static void running_stub(struct task_struct *p) {}
 static void stopping_stub(struct task_struct *p, bool runnable) {}
@@ -5079,6 +5080,7 @@ static struct sched_ext_ops __bpf_ops_sched_ext_ops = {
        .enqueue = enqueue_stub,
        .dequeue = dequeue_stub,
        .dispatch = dispatch_stub,
+       .tick = tick_stub,
        .runnable = runnable_stub,
        .running = running_stub,
        .stopping = stopping_stub,