提交 e3634169 编写于 作者: J Joe Perches 提交者: David S. Miller

include/net/raw.h: Convert raw_seq_private macro to inline

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cc28a20e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册