diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-03-11 02:09:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 07:19:41 +0100 |
commit | 64fbca011976ce1564f191f4154e4a6ade25779a (patch) | |
tree | 793d5d07c83baf115d2635043aff15d6e078a850 /net/netlink | |
parent | tcp: Add missing annotation for tcp_child_process() (diff) | |
download | linux-64fbca011976ce1564f191f4154e4a6ade25779a.tar.xz linux-64fbca011976ce1564f191f4154e4a6ade25779a.zip |
net: Add missing annotation for *netlink_seq_start()
Sparse reports a warning at netlink_seq_start()
warning: context imbalance in netlink_seq_start() - wrong count at exit
The root cause is the missing annotation at netlink_seq_start()
Add the missing __acquires(RCU) annotation
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 813bfab13296..19df49a6ad15 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -2583,6 +2583,7 @@ static void *__netlink_seq_next(struct seq_file *seq) } static void *netlink_seq_start(struct seq_file *seq, loff_t *posp) + __acquires(RCU) { struct nl_seq_iter *iter = seq->private; void *obj = SEQ_START_TOKEN; |