diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-01-21 05:27:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:42 -0500 |
commit | 72348a424f989d6b748d9b816d46839b01fcd4cd (patch) | |
tree | 8143af5e671c4fbf3ab8ea8b416f674a7bd6e2dc | |
parent | aa767bfea4828936fffb7800204294ba4c8ba283 (diff) |
[PKT_SCHED] net: add sparse annotation to ptype_seq_start/stop
Get rid of some more sparse warnings.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index eee774243097..c9c593e1ba6f 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2543,6 +2543,7 @@ static void *ptype_get_idx(loff_t pos) | |||
2543 | } | 2543 | } |
2544 | 2544 | ||
2545 | static void *ptype_seq_start(struct seq_file *seq, loff_t *pos) | 2545 | static void *ptype_seq_start(struct seq_file *seq, loff_t *pos) |
2546 | __acquires(RCU) | ||
2546 | { | 2547 | { |
2547 | rcu_read_lock(); | 2548 | rcu_read_lock(); |
2548 | return *pos ? ptype_get_idx(*pos - 1) : SEQ_START_TOKEN; | 2549 | return *pos ? ptype_get_idx(*pos - 1) : SEQ_START_TOKEN; |
@@ -2578,6 +2579,7 @@ found: | |||
2578 | } | 2579 | } |
2579 | 2580 | ||
2580 | static void ptype_seq_stop(struct seq_file *seq, void *v) | 2581 | static void ptype_seq_stop(struct seq_file *seq, void *v) |
2582 | __releases(RCU) | ||
2581 | { | 2583 | { |
2582 | rcu_read_unlock(); | 2584 | rcu_read_unlock(); |
2583 | } | 2585 | } |