[PATCH 0/3] tools/sched_ext: fix compilation issues

From: Zhao Mengmeng

Date: Tue Mar 03 2026 - 02:28:33 EST


From: Zhao Mengmeng <zhaomengmeng@xxxxxxxxxx>

This series addresses compilation issues in the sched_ext (scx)
tooling and selftests when using Clang 17.

1. Add -fms-extensions flags to scheduler and selftests to avoid build
warning like "declaration does not declare anything"
2. Use signed div for peek_dsq.bpf.c to avoid clang 17 crash.

Zhao Mengmeng (3):
tools/sched_ext: Add -fms-extensions to bpf build flags
selftests/sched_ext: Add -fms-extensions to bpf build flags
selftests/sched_ext: Fix peek_dsq.bpf.c compile error for clang 17

tools/sched_ext/Makefile | 2 ++
tools/testing/selftests/sched_ext/Makefile | 2 ++
tools/testing/selftests/sched_ext/peek_dsq.bpf.c | 4 ++--
3 files changed, 6 insertions(+), 2 deletions(-)

--
2.43.0