net: Add missing annotation for llc_seq_start()
authorJules Irenge <jbi.octave@gmail.com>
Sun, 23 Feb 2020 23:16:48 +0000 (23:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 21:26:49 +0000 (13:26 -0800)
Sparse reports a warning at llc_seq_start()

warning: context imbalance in llc_seq_start() - wrong count at exit
The root cause is the msiing annotation at llc_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>
net/llc/llc_proc.c

index f3a36c1..a4eccb9 100644 (file)
@@ -56,7 +56,7 @@ found:
        return sk;
 }
 
-static void *llc_seq_start(struct seq_file *seq, loff_t *pos)
+static void *llc_seq_start(struct seq_file *seq, loff_t *pos) __acquires(RCU)
 {
        loff_t l = *pos;