rtnetlink: RCU-annotate both dimensions of rtnl_msg_handlers
authorJakub Kicinski <kuba@kernel.org>
Thu, 10 Dec 2020 02:16:08 +0000 (18:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 21:35:59 +0000 (13:35 -0800)
commit51e13685bd93654e0e9b2559c8e103d6545ddf95
treed241b5a991d0d9ba6e88eb0e248a97a1f238adfb
parent1d608d2e0d51df7cb592bc9c7a77a534ff71dd94
rtnetlink: RCU-annotate both dimensions of rtnl_msg_handlers

We use rcu_assign_pointer to assign both the table and the entries,
but the entries are not marked as __rcu. This generates sparse
warnings.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c