summaryrefslogtreecommitdiffstats
path: root/include/net/raw.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-09-07 07:55:38 +0200
committerDavid S. Miller <davem@davemloft.net>2010-09-08 22:42:22 +0200
commite3634169bcc0cce33c815865d62ab378739f7389 (patch)
tree80165f1b0d8d7035734b7fe797083dbd9391781e /include/net/raw.h
parentintroduce cx82310_eth: Conexant CX82310-based ADSL router USB ethernet driver (diff)
downloadlinux-e3634169bcc0cce33c815865d62ab378739f7389.tar.xz
linux-e3634169bcc0cce33c815865d62ab378739f7389.zip
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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/raw.h b/include/net/raw.h
index 43c57502659b..42ce6fe7a2d5 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);