]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/sched_ext: Fix enum resolution
authorAndrea Righi <arighi@nvidia.com>
Thu, 23 Jan 2025 12:46:06 +0000 (13:46 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 24 Jan 2025 18:09:52 +0000 (08:09 -1000)
commit74ca334338a4489173d9e50775b13fa20cbd5958
treeddcea183e7156955f879d72c01238861bf460187
parent2279563e3a8cac367b267b09c15cf1e39c06c5cc
selftests/sched_ext: Fix enum resolution

All scx enums are now automatically generated from vmlinux.h and they
must be initialized using the SCX_ENUM_INIT() macro.

Fix the scx selftests to use this macro to properly initialize these
values.

Fixes: 8da7bf2cee27 ("tools/sched_ext: Receive updates from SCX repo")
Reported-by: Ihor Solodrai <ihor.solodrai@pm.me>
Closes: https://lore.kernel.org/all/Z2tNK2oFDX1OPp8C@slm.duckdns.org/
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
19 files changed:
tools/testing/selftests/sched_ext/create_dsq.c
tools/testing/selftests/sched_ext/ddsp_bogus_dsq_fail.c
tools/testing/selftests/sched_ext/ddsp_vtimelocal_fail.c
tools/testing/selftests/sched_ext/dsp_local_on.c
tools/testing/selftests/sched_ext/enq_last_no_enq_fails.c
tools/testing/selftests/sched_ext/enq_select_cpu_fails.c
tools/testing/selftests/sched_ext/exit.c
tools/testing/selftests/sched_ext/hotplug.c
tools/testing/selftests/sched_ext/init_enable_count.c
tools/testing/selftests/sched_ext/maximal.c
tools/testing/selftests/sched_ext/minimal.c
tools/testing/selftests/sched_ext/prog_run.c
tools/testing/selftests/sched_ext/reload_loop.c
tools/testing/selftests/sched_ext/select_cpu_dfl.c
tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.c
tools/testing/selftests/sched_ext/select_cpu_dispatch.c
tools/testing/selftests/sched_ext/select_cpu_dispatch_bad_dsq.c
tools/testing/selftests/sched_ext/select_cpu_dispatch_dbl_dsp.c
tools/testing/selftests/sched_ext/select_cpu_vtime.c