public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/ipv4/raw.c: Fix sparse noise about context imbalance
@ 2009-08-05  1:23 H Hartley Sweeten
  0 siblings, 0 replies; only message in thread
From: H Hartley Sweeten @ 2009-08-05  1:23 UTC (permalink / raw)
  To: Linux Kernel

Fix sparse noise due to context imbalance by annotating the functions.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---

diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index 2979f14..e83f7c5 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -896,6 +896,7 @@ static struct sock *raw_get_idx(struct seq_file *seq, loff_t pos)
 }
 
 void *raw_seq_start(struct seq_file *seq, loff_t *pos)
+	__acquires(&state->h->lock)
 {
 	struct raw_iter_state *state = raw_seq_private(seq);
 
@@ -918,6 +919,7 @@ void *raw_seq_next(struct seq_file *seq, void *v, loff_t *pos)
 EXPORT_SYMBOL_GPL(raw_seq_next);
 
 void raw_seq_stop(struct seq_file *seq, void *v)
+	__releases(&state->h->lock)
 {
 	struct raw_iter_state *state = raw_seq_private(seq);
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-05  1:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05  1:23 [PATCH] net/ipv4/raw.c: Fix sparse noise about context imbalance H Hartley Sweeten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox