aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/proc.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-01-15 06:29:50 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:02:43 -0500
commit5c17d5f11212af5f12b91991b1132cf301dd1f28 (patch)
treed2484d9eb389c9f54c73c413f442dd97840d7976 /net/atm/proc.c
parentca629f2472762088b105cd6081bf9aaa56d4547d (diff)
[ATM]: Suppress some sparse warnings
CHECK net/atm/br2684.c net/atm/br2684.c:665:13: warning: context imbalance in 'br2684_seq_start' - wrong count at exit net/atm/br2684.c:676:13: warning: context imbalance in 'br2684_seq_stop' - unexpected unlock CHECK net/atm/lec.c net/atm/lec.c:196:23: warning: expensive signed divide CHECK net/atm/proc.c net/atm/proc.c:151:14: warning: context imbalance in 'vcc_seq_start' - wrong count at exit net/atm/proc.c:154:13: warning: context imbalance in 'vcc_seq_stop' - unexpected unlock Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/proc.c')
-rw-r--r--net/atm/proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/atm/proc.c b/net/atm/proc.c
index 565e75e62ca4..49125110bb8b 100644
--- a/net/atm/proc.c
+++ b/net/atm/proc.c
@@ -142,6 +142,7 @@ static int vcc_seq_release(struct inode *inode, struct file *file)
142} 142}
143 143
144static void *vcc_seq_start(struct seq_file *seq, loff_t *pos) 144static void *vcc_seq_start(struct seq_file *seq, loff_t *pos)
145 __acquires(vcc_sklist_lock)
145{ 146{
146 struct vcc_state *state = seq->private; 147 struct vcc_state *state = seq->private;
147 loff_t left = *pos; 148 loff_t left = *pos;
@@ -152,6 +153,7 @@ static void *vcc_seq_start(struct seq_file *seq, loff_t *pos)
152} 153}
153 154
154static void vcc_seq_stop(struct seq_file *seq, void *v) 155static void vcc_seq_stop(struct seq_file *seq, void *v)
156 __releases(vcc_sklist_lock)
155{ 157{
156 read_unlock(&vcc_sklist_lock); 158 read_unlock(&vcc_sklist_lock);
157} 159}