Re: [PATCH] sched: Tweak default dynamic preempt mode selection

From: Valentin Schneider
Date: Mon Nov 08 2021 - 07:00:32 EST


On 06/11/21 13:05, kernel test robot wrote:
> kernel/sched/core.c:3439:6: error: no previous prototype for function 'sched_set_stop_task' [-Werror,-Wmissing-prototypes]
> void sched_set_stop_task(int cpu, struct task_struct *stop)
> ^
> kernel/sched/core.c:3439:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> void sched_set_stop_task(int cpu, struct task_struct *stop)
> ^
> static
>>> kernel/sched/core.c:6576:2: error: use of undeclared identifier '__SCT__preempt_schedule'
> static_call_update(preempt_schedule, __preempt_schedule_func);
> ^

Doh, I broke the

PREEMPT_DYNAMIC
select PREEMPT

thing - the above happens with PREEMPT_DYNAMIC && !PREEMPT. Lemme fix.