sched_ext: Add __weak to fix the build errors
authorHonglei Wang <jameshongleiwang@126.com>
Fri, 29 Nov 2024 09:10:03 +0000 (17:10 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 3 Dec 2024 20:27:26 +0000 (10:27 -1000)
commit793baff3f24f16dab9061045e23eea67724feae6
tree23128c143867640ac8bdb698b70cb106b6dbbaff
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
sched_ext: Add __weak to fix the build errors

commit 5cbb302880f5 ("sched_ext: Rename
scx_bpf_dispatch[_vtime]_from_dsq*() -> scx_bpf_dsq_move[_vtime]*()")
introduced several new functions which caused compilation errors when
compiled with clang.

Let's fix this by adding __weak markers.

Signed-off-by: Honglei Wang <jameshongleiwang@126.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 5cbb302880f5 ("sched_ext: Rename scx_bpf_dispatch[_vtime]_from_dsq*() -> scx_bpf_dsq_move[_vtime]*()")
Acked-by: Andrii Nakryiko <andrii@kernel.org>
tools/sched_ext/include/scx/common.bpf.h