diff --git a/scheds/rust/scx_fair/src/bpf/main.bpf.c b/scheds/rust/scx_fair/src/bpf/main.bpf.c index 9bc837048..dcf8e9d55 100644 --- a/scheds/rust/scx_fair/src/bpf/main.bpf.c +++ b/scheds/rust/scx_fair/src/bpf/main.bpf.c @@ -140,14 +140,6 @@ struct task_ctx *try_lookup_task_ctx(const struct task_struct *p) (struct task_struct *)p, 0, 0); } -/* - * Access a cpumask in read-only mode (typically to check bits). - */ -static const struct cpumask *cast_mask(struct bpf_cpumask *mask) -{ - return (const struct cpumask *)mask; -} - /* * Allocate/re-allocate a new cpumask. */