diff options
author | Benjamin Tissoires <bentiss@kernel.org> | 2024-07-08 11:52:57 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-07-08 10:01:48 -0700 |
commit | f56f4d541eab1ae060a46b56dd6ec9130d6e3a98 (patch) | |
tree | d4597e7a4336c3472ef18a6ca6c6ef1eb7995328 /fs | |
parent | cedc12c5b57f7efa6dbebfb2b140e8675f5a2616 (diff) |
bpf: helpers: fix bpf_wq_set_callback_impl signature
I realized this while having a map containing both a struct bpf_timer and
a struct bpf_wq: the third argument provided to the bpf_wq callback is
not the struct bpf_wq pointer itself, but the pointer to the value in
the map.
Which means that the users need to double cast the provided "value" as
this is not a struct bpf_wq *.
This is a change of API, but there doesn't seem to be much users of bpf_wq
right now, so we should be able to go with this right now.
Fixes: 81f1d7a583fa ("bpf: wq: add bpf_wq_set_callback_impl")
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240708-fix-wq-v2-1-667e5c9fbd99@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions