diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-02-24 02:16:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-25 00:26:49 +0300 |
commit | 8e0f8ccfb0d290eaac3db086c600f4522584c7f2 (patch) | |
tree | 6082c5981c1df70c0fe290bfa59456b8d665099b /net/llc | |
parent | b77b4f634e5f7b0477e682ad643cbad43b7d9d93 (diff) | |
download | linux-8e0f8ccfb0d290eaac3db086c600f4522584c7f2.tar.xz |
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.c | 2 |
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; |