]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ethernet: mtk_wed: annotate RCU release in attach()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 23 Apr 2025 15:08:08 +0000 (17:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Apr 2025 01:22:05 +0000 (18:22 -0700)
commitd57ee99831e336576359beb26e2b140511c99106
treeec5a6a2d86ed653509f8e3c8069858948c4c3088
parenta764e8114d2d80e8b0f453084b2e9fcc6454b7a1
net: ethernet: mtk_wed: annotate RCU release in attach()

There are some sparse warnings in wifi, and it seems that
it's actually possible to annotate a function pointer with
__releases(), making the sparse warnings go away. In a way
that also serves as documentation that rcu_read_unlock()
must be called in the attach method, so add that annotation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20250423150811.456205-2-johannes@sipsolutions.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/soc/mediatek/mtk_wed.h