]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
commit8d737320166bd145af70a3133a9964b00ca81cba
tree01ebe513c9bee671d5a6a0dd40f9e1a3e5badbec
parent6c125b85f3c87b4bf7dba91af6f27d9600b9dba0
sched: Fix build for modules using set_tsk_need_resched()

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