diff options
author | Joe Perches <joe@perches.com> | 2010-09-07 05:55:38 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-08 20:42:22 (GMT) |
commit | e3634169bcc0cce33c815865d62ab378739f7389 (patch) | |
tree | 80165f1b0d8d7035734b7fe797083dbd9391781e /include/net/raw.h | |
parent | cc28a20e77b261eb4e80c84abd621e810302f435 (diff) | |
download | linux-e3634169bcc0cce33c815865d62ab378739f7389.tar.xz |
include/net/raw.h: Convert raw_seq_private macro to inline
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/raw.h')
-rw-r--r-- | include/net/raw.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/raw.h b/include/net/raw.h index 43c5750..42ce6fe 100644 --- a/include/net/raw.h +++ b/include/net/raw.h @@ -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); |