Re: [PATCH 13/34] sched_ext: Refactor task init/exit helpers

From: Tejun Heo

Date: Fri Feb 27 2026 - 14:50:18 EST


Hello,

On Fri, Feb 27, 2026 at 07:55:49AM +0100, Andrea Righi wrote:
...
> Without CONFIG_EXT_GROUP_SCHED we get this:
>
> In file included from kernel/sched/build_policy.c:62:
> kernel/sched/ext.c: In function ‘__scx_init_task’:
> kernel/sched/ext.c:3228:28: error: unused variable ‘tg’ [-Werror=unused-variable]
> 3228 | struct task_group *tg = task_group(p);
> | ^~
> cc1: all warnings being treated as errors
>
> Maybe wrap tg inside an #ifdef CONFIG_EXT_GROUP_SCHED or we can do
> SCX_INIT_TASK_ARGS_CGROUP(task_group(p)) directly.

Yeah, there were a number of build failures w/o cgroup / cpu control
enabled. Fixed in my tree. Should be okay on the next posting.

Thanks.

--
tejun