Re: [PATCH] sched_ext: Add __weak markers to BPF helper function decalarations

From: Tejun Heo
Date: Wed Oct 02 2024 - 12:54:08 EST


On Wed, Oct 02, 2024 at 12:38:06PM +0530, Vishal Chourasia wrote:
> Fix build errors by adding __weak markers to BPF helper function
> declarations in header files. This resolves static assertion failures
> in scx_qmap.bpf.c and scx_flatcg.bpf.c where functions like
> scx_bpf_dispatch_from_dsq_set_slice, scx_bpf_dispatch_from_dsq_set_vtime,
> and scx_bpf_task_cgroup were missing the __weak attribute.
>
> [1] https://lore.kernel.org/all/ZvvfUqRNM4-jYQzH@xxxxxxxxxxxxx
>
> Signed-off-by: Vishal Chourasia <vishalc@xxxxxxxxxxxxx>

Applied to sched_ext/for-6.12-fixes.

Thanks.

--
tejun