netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: add sparse annotation to ptype_seq_start/stop
@ 2008-01-20 23:21 Stephen Hemminger
  2008-01-21  5:03 ` Paul E. McKenney
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2008-01-20 23:21 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

Get rid of some more sparse warnings.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--- a/net/core/dev.c	2008-01-20 14:25:00.000000000 -0800
+++ b/net/core/dev.c	2008-01-20 14:25:48.000000000 -0800
@@ -2543,6 +2543,7 @@ static void *ptype_get_idx(loff_t pos)
 }
 
 static void *ptype_seq_start(struct seq_file *seq, loff_t *pos)
+	__acquires(rcu)
 {
 	rcu_read_lock();
 	return *pos ? ptype_get_idx(*pos - 1) : SEQ_START_TOKEN;
@@ -2578,6 +2579,7 @@ found:
 }
 
 static void ptype_seq_stop(struct seq_file *seq, void *v)
+	__releases(rcu)
 {
 	rcu_read_unlock();
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-21 10:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-20 23:21 [PATCH] net: add sparse annotation to ptype_seq_start/stop Stephen Hemminger
2008-01-21  5:03 ` Paul E. McKenney
2008-01-21  5:28   ` Al Viro
2008-01-21  6:01     ` Paul E. McKenney
2008-01-21  7:29   ` Josh Triplett
2008-01-21 10:28     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).