From: Alexei Starovoitov Date: Mon, 8 Jul 2024 17:01:48 +0000 (-0700) Subject: Merge branch 'small-api-fix-for-bpf_wq' X-Git-Tag: v6.11-rc1~163^2~68^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06507c7536f747867d6d83d605af6bd753fec6d3;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'small-api-fix-for-bpf_wq' Benjamin Tissoires says: ==================== Small API fix for bpf_wq 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. Signed-off-by: Benjamin Tissoires --- Changes in v2: - amended the selftests to retrieve something from the third argument of the callback - Link to v1: https://lore.kernel.org/r/20240705-fix-wq-v1-0-91b4d82cd825@kernel.org --- ==================== Link: https://lore.kernel.org/r/20240708-fix-wq-v2-0-667e5c9fbd99@kernel.org Signed-off-by: Alexei Starovoitov --- 06507c7536f747867d6d83d605af6bd753fec6d3