Skip to content

Commit

Permalink
include/net/raw.h: Convert raw_seq_private macro to inline
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Sep 8, 2010
1 parent cc28a20 commit e363416
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/net/raw.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ struct raw_iter_state {
struct raw_hashinfo *h;
};

#define raw_seq_private(seq) ((struct raw_iter_state *)(seq)->private)
static inline struct raw_iter_state *raw_seq_private(struct seq_file *seq)
{
return seq->private;
}
void *raw_seq_start(struct seq_file *seq, loff_t *pos);
void *raw_seq_next(struct seq_file *seq, void *v, loff_t *pos);
void raw_seq_stop(struct seq_file *seq, void *v);
Expand Down

0 comments on commit e363416

Please sign in to comment.