net: ipv4: provide __rcu annotation for ifa_list
authorFlorian Westphal <fw@strlen.de>
Fri, 31 May 2019 16:27:09 +0000 (18:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 01:08:36 +0000 (18:08 -0700)
commit2638eb8b50cfc16240e0bb080b9afbf541a9b39d
tree84264a6f50aaedfac6854bef3d5972926d321c10
parentcb8f1478cea68bc9c9bca8bded9617d9b0b7beb6
net: ipv4: provide __rcu annotation for ifa_list

ifa_list is protected by rcu, yet code doesn't reflect this.

Add the __rcu annotations and fix up all places that are now reported by
sparse.

I've done this in the same commit to not add intermediate patches that
result in new warnings.

Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
15 files changed:
drivers/infiniband/hw/i40iw/i40iw_utils.c
drivers/infiniband/hw/nes/nes.c
drivers/infiniband/hw/usnic/usnic_ib_main.c
drivers/net/ethernet/via/via-velocity.h
drivers/net/plip/plip.c
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/marvell/mwifiex/cfg80211.c
drivers/staging/isdn/hysdn/hysdn_net.c
include/linux/inetdevice.h
net/core/netpoll.c
net/core/pktgen.c
net/ipv4/devinet.c
net/mac80211/main.c
net/netfilter/nf_nat_redirect.c