summaryrefslogtreecommitdiffstats
path: root/net/llc
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-23 23:16:48 +0000
committerDavid S. Miller <davem@davemloft.net>2020-02-24 13:26:49 -0800
commit8e0f8ccfb0d290eaac3db086c600f4522584c7f2 (patch)
tree6082c5981c1df70c0fe290bfa59456b8d665099b /net/llc
parentb77b4f634e5f7b0477e682ad643cbad43b7d9d93 (diff)
downloadlinux-8e0f8ccfb0d290eaac3db086c600f4522584c7f2.tar.bz2
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>
Diffstat (limited to 'net/llc')
-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;