summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sched_ext/hotplug.bpf.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-10-29 16:35:40 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2024-10-29 16:35:40 -1000
commitdaa9f66fe194f672d2c94d879b6dad7035e03ebe (patch)
treed2ae3065e809457070ccbaca15946275c8280abf /tools/testing/selftests/sched_ext/hotplug.bpf.c
parent7fbaacafbc55c56ca156a628a805f79a2cbe7103 (diff)
parentc31f2ee5cd7da3086eb4fbeef9f3afdc8e01d36b (diff)
downloadlinux-next-daa9f66fe194f672d2c94d879b6dad7035e03ebe.tar.gz
linux-next-daa9f66fe194f672d2c94d879b6dad7035e03ebe.zip
Merge tag 'sched_ext-for-6.12-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext
Pull sched_ext fixes from Tejun Heo: - Instances of scx_ops_bypass() could race each other leading to misbehavior. Fix by protecting the operation with a spinlock. - selftest and userspace header fixes * tag 'sched_ext-for-6.12-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext: sched_ext: Fix enq_last_no_enq_fails selftest sched_ext: Make cast_mask() inline scx: Fix raciness in scx_ops_bypass() scx: Fix exit selftest to use custom DSQ sched_ext: Fix function pointer type mismatches in BPF selftests selftests/sched_ext: add order-only dependency of runner.o on BPFOBJ
Diffstat (limited to 'tools/testing/selftests/sched_ext/hotplug.bpf.c')
-rw-r--r--tools/testing/selftests/sched_ext/hotplug.bpf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/testing/selftests/sched_ext/hotplug.bpf.c b/tools/testing/selftests/sched_ext/hotplug.bpf.c
index 8f2601db39f3..6c9f25c9bf53 100644
--- a/tools/testing/selftests/sched_ext/hotplug.bpf.c
+++ b/tools/testing/selftests/sched_ext/hotplug.bpf.c
@@ -46,16 +46,16 @@ void BPF_STRUCT_OPS_SLEEPABLE(hotplug_cpu_offline, s32 cpu)
SEC(".struct_ops.link")
struct sched_ext_ops hotplug_cb_ops = {
- .cpu_online = hotplug_cpu_online,
- .cpu_offline = hotplug_cpu_offline,
- .exit = hotplug_exit,
+ .cpu_online = (void *) hotplug_cpu_online,
+ .cpu_offline = (void *) hotplug_cpu_offline,
+ .exit = (void *) hotplug_exit,
.name = "hotplug_cbs",
.timeout_ms = 1000U,
};
SEC(".struct_ops.link")
struct sched_ext_ops hotplug_nocb_ops = {
- .exit = hotplug_exit,
+ .exit = (void *) hotplug_exit,
.name = "hotplug_nocbs",
.timeout_ms = 1000U,
};