diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-01-14 01:29:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:03 -0500 |
commit | f16f3026db6fa63cbb0f4a37833562aa999c93e5 (patch) | |
tree | 94cf1a39795d04315a1dd2eadbe2d77a453b3844 /net/ax25/ax25_route.c | |
parent | 6bf1574ee33270e7c0b9d43103e8cedffd9f74db (diff) |
[AX25]: sparse cleanups
net/ax25/ax25_route.c:251:13: warning: context imbalance in
'ax25_rt_seq_start' - wrong count at exit
net/ax25/ax25_route.c:276:13: warning: context imbalance in 'ax25_rt_seq_stop'
- unexpected unlock
net/ax25/ax25_std_timer.c:65:25: warning: expensive signed divide
net/ax25/ax25_uid.c:46:1: warning: symbol 'ax25_uid_list' was not declared.
Should it be static?
net/ax25/ax25_uid.c:146:13: warning: context imbalance in 'ax25_uid_seq_start'
- wrong count at exit
net/ax25/ax25_uid.c:169:13: warning: context imbalance in 'ax25_uid_seq_stop'
- unexpected unlock
net/ax25/af_ax25.c:573:28: warning: expensive signed divide
net/ax25/af_ax25.c:1865:13: warning: context imbalance in 'ax25_info_start' -
wrong count at exit
net/ax25/af_ax25.c:1888:13: warning: context imbalance in 'ax25_info_stop' -
unexpected unlock
net/ax25/ax25_ds_timer.c:133:25: warning: expensive signed divide
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/ax25_route.c')
-rw-r--r-- | net/ax25/ax25_route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c index 9ecf6f1df863..38c7f3087ec3 100644 --- a/net/ax25/ax25_route.c +++ b/net/ax25/ax25_route.c | |||
@@ -249,6 +249,7 @@ int ax25_rt_ioctl(unsigned int cmd, void __user *arg) | |||
249 | #ifdef CONFIG_PROC_FS | 249 | #ifdef CONFIG_PROC_FS |
250 | 250 | ||
251 | static void *ax25_rt_seq_start(struct seq_file *seq, loff_t *pos) | 251 | static void *ax25_rt_seq_start(struct seq_file *seq, loff_t *pos) |
252 | __acquires(ax25_route_lock) | ||
252 | { | 253 | { |
253 | struct ax25_route *ax25_rt; | 254 | struct ax25_route *ax25_rt; |
254 | int i = 1; | 255 | int i = 1; |
@@ -274,6 +275,7 @@ static void *ax25_rt_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
274 | } | 275 | } |
275 | 276 | ||
276 | static void ax25_rt_seq_stop(struct seq_file *seq, void *v) | 277 | static void ax25_rt_seq_stop(struct seq_file *seq, void *v) |
278 | __releases(ax25_route_lock) | ||
277 | { | 279 | { |
278 | read_unlock(&ax25_route_lock); | 280 | read_unlock(&ax25_route_lock); |
279 | } | 281 | } |