summaryrefslogtreecommitdiffstats
path: root/net/wanrouter/wanproc.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-25 10:33:06 +0000
committerDavid S. Miller <davem@davemloft.net>2009-02-26 23:13:36 -0800
commit9ee62630fddda0142cebc45e3bbea20a8009be97 (patch)
tree3fb04dc7c38cbcb2066f9a4ba9b25a5fe5818179 /net/wanrouter/wanproc.c
parent56bca31ff1989aa8b60f717e984b0e624f06324e (diff)
downloadtalos-op-linux-9ee62630fddda0142cebc45e3bbea20a8009be97.tar.gz
talos-op-linux-9ee62630fddda0142cebc45e3bbea20a8009be97.zip
wanrouter: fix sparse warnings: context imbalance
Impact: Attribute functions with __acquires(...) resp. __releases(...). Fix this sparse warnings: net/wanrouter/wanproc.c:82:13: warning: context imbalance in 'r_start' - wrong count at exit net/wanrouter/wanproc.c:103:13: warning: context imbalance in 'r_stop' - unexpected unlock net/wanrouter/wanmain.c:765:13: warning: context imbalance in 'lock_adapter_irq' - wrong count at exit net/wanrouter/wanmain.c:771:13: warning: context imbalance in 'unlock_adapter_irq' - unexpected unlock Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wanrouter/wanproc.c')
-rw-r--r--net/wanrouter/wanproc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wanrouter/wanproc.c b/net/wanrouter/wanproc.c
index 267f7ff49827..c44d96b3a437 100644
--- a/net/wanrouter/wanproc.c
+++ b/net/wanrouter/wanproc.c
@@ -80,6 +80,7 @@ static struct proc_dir_entry *proc_router;
* Iterator
*/
static void *r_start(struct seq_file *m, loff_t *pos)
+ __acquires(kernel_lock)
{
struct wan_device *wandev;
loff_t l = *pos;
@@ -101,6 +102,7 @@ static void *r_next(struct seq_file *m, void *v, loff_t *pos)
}
static void r_stop(struct seq_file *m, void *v)
+ __releases(kernel_lock)
{
unlock_kernel();
}
OpenPOWER on IntegriCloud