Patchwork [V2,net-next] include/net/raw.h: Convert raw_seq_private macro to inline

login
register
mail settings
Submitter Joe Perches
Date Sept. 7, 2010, 3:55 p.m.
Message ID <1283874938.23280.141.camel@Joe-Laptop>
Download mbox | patch
Permalink /patch/64032/
State Accepted
Delegated to: David Miller
Headers show

Comments

Joe Perches - Sept. 7, 2010, 3:55 p.m.
Signed-off-by: Joe Perches <joe@perches.com>
---
 include/net/raw.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Sept. 8, 2010, 8:42 p.m.
From: Joe Perches <joe@perches.com>
Date: Tue, 07 Sep 2010 08:55:38 -0700

> Signed-off-by: Joe Perches <joe@perches.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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);