Skip to content
Commit 4f7f4170 authored by Vishal Chourasia's avatar Vishal Chourasia Committed by Tejun Heo
Browse files

sched_ext: Fix function pointer type mismatches in BPF selftests



Fix incompatible function pointer type warnings in sched_ext BPF selftests by
explicitly casting the function pointers when initializing struct_ops.
This addresses multiple -Wincompatible-function-pointer-types warnings from the
clang compiler where function signatures didn't match exactly.

The void * cast ensures the compiler accepts the function pointer
assignment despite minor type differences in the parameters.

Signed-off-by: default avatarVishal Chourasia <vishalc@linux.ibm.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 9b3c11a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment