Skip to content

Commit

Permalink
[PKT_SCHED] net: add sparse annotation to ptype_seq_start/stop
Browse files Browse the repository at this point in the history
Get rid of some more sparse warnings.

Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Stephen Hemminger authored and davem330 committed Jan 28, 2008
1 parent aa767bf commit 72348a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -2578,6 +2579,7 @@ static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos)
}

static void ptype_seq_stop(struct seq_file *seq, void *v)
__releases(RCU)
{
rcu_read_unlock();
}
Expand Down

0 comments on commit 72348a4

Please sign in to comment.