diff options
| author | Benjamin Tissoires <bentiss@kernel.org> | 2024-07-08 11:52:58 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2024-07-08 10:01:48 -0700 |
| commit | 16e86f2e8199cdb8789573c8784eb5c1cd478f13 (patch) | |
| tree | f411f868052894bcbab042447224918218fa6d30 /tools/testing/selftests/bpf/progs/wq_failures.c | |
| parent | f56f4d541eab1ae060a46b56dd6ec9130d6e3a98 (diff) | |
selftests/bpf: amend for wrong bpf_wq_set_callback_impl signature
See the previous patch: the API was wrong, we were provided the pointer
to the value, not the actual struct bpf_wq *.
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240708-fix-wq-v2-2-667e5c9fbd99@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/wq_failures.c')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/wq_failures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/wq_failures.c b/tools/testing/selftests/bpf/progs/wq_failures.c index 4cbdb425f223..25b51a72fe0f 100644 --- a/tools/testing/selftests/bpf/progs/wq_failures.c +++ b/tools/testing/selftests/bpf/progs/wq_failures.c @@ -28,14 +28,14 @@ struct { } lru SEC(".maps"); /* callback for non sleepable workqueue */ -static int wq_callback(void *map, int *key, struct bpf_wq *work) +static int wq_callback(void *map, int *key, void *value) { bpf_kfunc_common_test(); return 0; } /* callback for sleepable workqueue */ -static int wq_cb_sleepable(void *map, int *key, struct bpf_wq *work) +static int wq_cb_sleepable(void *map, int *key, void *value) { bpf_kfunc_call_test_sleepable(); return 0; |