]> Git Repo - linux.git/commit
sched_ext: Fix function pointer type mismatches in BPF selftests
authorVishal Chourasia <[email protected]>
Thu, 24 Oct 2024 05:16:09 +0000 (10:46 +0530)
committerTejun Heo <[email protected]>
Thu, 24 Oct 2024 16:56:17 +0000 (06:56 -1000)
commit4f7f417042b242c1e5a9ed03741acb5d900e0871
tree3328ec0000163779f05b60d2c097efc6517dce68
parent9b3c11a867a82ebee4e096008014417918b82801
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: Vishal Chourasia <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
19 files changed:
tools/testing/selftests/sched_ext/create_dsq.bpf.c
tools/testing/selftests/sched_ext/ddsp_bogus_dsq_fail.bpf.c
tools/testing/selftests/sched_ext/ddsp_vtimelocal_fail.bpf.c
tools/testing/selftests/sched_ext/dsp_local_on.bpf.c
tools/testing/selftests/sched_ext/enq_select_cpu_fails.bpf.c
tools/testing/selftests/sched_ext/exit.bpf.c
tools/testing/selftests/sched_ext/hotplug.bpf.c
tools/testing/selftests/sched_ext/init_enable_count.bpf.c
tools/testing/selftests/sched_ext/maximal.bpf.c
tools/testing/selftests/sched_ext/maybe_null.bpf.c
tools/testing/selftests/sched_ext/maybe_null_fail_dsp.bpf.c
tools/testing/selftests/sched_ext/maybe_null_fail_yld.bpf.c
tools/testing/selftests/sched_ext/prog_run.bpf.c
tools/testing/selftests/sched_ext/select_cpu_dfl.bpf.c
tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.bpf.c
tools/testing/selftests/sched_ext/select_cpu_dispatch.bpf.c
tools/testing/selftests/sched_ext/select_cpu_dispatch_bad_dsq.bpf.c
tools/testing/selftests/sched_ext/select_cpu_dispatch_dbl_dsp.bpf.c
tools/testing/selftests/sched_ext/select_cpu_vtime.bpf.c
This page took 0.05914 seconds and 4 git commands to generate.