From: Jules Irenge Date: Sun, 23 Feb 2020 23:16:48 +0000 (+0000) Subject: net: Add missing annotation for llc_seq_start() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8e0f8ccfb0d290eaac3db086c600f4522584c7f2;p=linux.git 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 Signed-off-by: David S. Miller --- diff --git a/net/llc/llc_proc.c b/net/llc/llc_proc.c index f3a36c16a5e7e..a4eccb98220a9 100644 --- a/net/llc/llc_proc.c +++ b/net/llc/llc_proc.c @@ -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;