]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched: Fix build for modules using set_tsk_need_resched()
authorGabriele Monaco <gmonaco@redhat.com>
Mon, 12 Jan 2026 14:04:13 +0000 (15:04 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 15 Jan 2026 21:41:26 +0000 (22:41 +0100)
Commit adcc3bfa8806 ("sched: Adapt sched tracepoints for RV task model")
added a tracepoint to the need_resched action that can be triggered also
by set_tsk_need_resched.
This function was previously accessible from out-of-tree modules but
it's no longer available because the __trace_set_need_resched() symbol
is not exported (together with the tracepoint itself, which was exported
in a separate patch) and building such modules fails.

Export __trace_set_need_resched to modules to fix those build issues.

Fixes: adcc3bfa8806 ("sched: Adapt sched tracepoints for RV task model")
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Phil Auld <pauld@redhat.com>
Link: https://patch.msgid.link/20260112140413.362202-1-gmonaco@redhat.com
kernel/sched/core.c

index b033f9751dfdb55102eb50d81fc9485901311bcc..3cca012d1259cfced14ed38dcb6759719d9ea185 100644 (file)
@@ -1139,6 +1139,7 @@ void __trace_set_need_resched(struct task_struct *curr, int tif)
 {
        trace_sched_set_need_resched_tp(curr, smp_processor_id(), tif);
 }
+EXPORT_SYMBOL_GPL(__trace_set_need_resched);
 
 void resched_curr(struct rq *rq)
 {