1
0
Fork 0

net: Add missing annotation for llc_seq_start()

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>
alistair/sensors
Jules Irenge 2020-02-23 23:16:48 +00:00 committed by David S. Miller
parent b77b4f634e
commit 8e0f8ccfb0
1 changed files with 1 additions and 1 deletions

View 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;