]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Add __weak markers to BPF helper function decalarations
authorVishal Chourasia <vishalc@linux.ibm.com>
Wed, 2 Oct 2024 07:08:06 +0000 (12:38 +0530)
committerTejun Heo <tj@kernel.org>
Wed, 2 Oct 2024 16:53:12 +0000 (06:53 -1000)
commitfcbc423577ce28b5e470a2a47fed6724430cccdb
tree03324ea3ed25982f865116866b98598205bad045
parent95b873693a0841e02b812e693296a884362fdd51
sched_ext: Add __weak markers to BPF helper function decalarations

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@linux.ibm.com

Signed-off-by: Vishal Chourasia <vishalc@linux.ibm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/include/scx/common.bpf.h