On Thu, Oct 24, 2024 at 10:46:09AM +0530, Vishal Chourasia wrote:
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: Vishal Chourasia vishalc@linux.ibm.com
Applied to sched_ext/for-6.12-fixes.
Thanks.