summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-03-08 05:45:18 +0300
committerTejun Heo <tj@kernel.org>2026-03-08 11:45:12 +0300
commit93ac9b150e2fba3a5e94e0b20d954a12e4b0907f (patch)
treec97941fc6e2631967d21a114315b0b482a46a8d9 /include/linux
parentc9c8546cdee64d3f1a54fe09cc2b8c1a8ea80c6d (diff)
downloadlinux-93ac9b150e2fba3a5e94e0b20d954a12e4b0907f.tar.xz
tools/sched_ext/include: Add libbpf version guard for assoc_struct_ops
Extract the inline bpf_program__assoc_struct_ops() call in SCX_OPS_LOAD() into a __scx_ops_assoc_prog() helper and wrap it with a libbpf >= 1.7 version guard. bpf_program__assoc_struct_ops() was added in libbpf 1.7; the guard provides a no-op fallback for older versions. Add the <bpf/libbpf.h> include needed by the helper, and fix "assumming" typo in a nearby comment. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions