summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-24 00:16:48 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-24 22:26:49 +0100
commit8e0f8ccfb0d290eaac3db086c600f4522584c7f2 (patch)
tree6082c5981c1df70c0fe290bfa59456b8d665099b
parentsctp: Add missing annotation for sctp_transport_walk_stop() (diff)
downloadlinux-8e0f8ccfb0d290eaac3db086c600f4522584c7f2.tar.xz
linux-8e0f8ccfb0d290eaac3db086c600f4522584c7f2.zip
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>
-rw-r--r--net/llc/llc_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/llc/llc_proc.c b/net/llc/llc_proc.c
index f3a36c16a5e7..a4eccb98220a 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;