[NET]: include/linux/igmp.h - remove duplicate include
authorJoe Perches <joe@perches.com>
Mon, 24 Mar 2008 05:05:44 +0000 (22:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Mar 2008 05:05:44 +0000 (22:05 -0700)
Removed duplicate #include <linux/skbuff.h>
Combined #ifdef __KERNEL__ blocks

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/igmp.h

index f510e7e382a89f59c68ddc4e306bb32d8749d2ad..f5a1a0db2e8ecb5d79c25d1483610c93e29546ac 100644 (file)
@@ -80,27 +80,6 @@ struct igmpv3_query {
        __be32 srcs[0];
 };
 
-#ifdef __KERNEL__
-#include <linux/skbuff.h>
-
-static inline struct igmphdr *igmp_hdr(const struct sk_buff *skb)
-{
-       return (struct igmphdr *)skb_transport_header(skb);
-}
-
-static inline struct igmpv3_report *
-                       igmpv3_report_hdr(const struct sk_buff *skb)
-{
-       return (struct igmpv3_report *)skb_transport_header(skb);
-}
-
-static inline struct igmpv3_query *
-                       igmpv3_query_hdr(const struct sk_buff *skb)
-{
-       return (struct igmpv3_query *)skb_transport_header(skb);
-}
-#endif
-
 #define IGMP_HOST_MEMBERSHIP_QUERY     0x11    /* From RFC1112 */
 #define IGMP_HOST_MEMBERSHIP_REPORT    0x12    /* Ditto */
 #define IGMP_DVMRP                     0x13    /* DVMRP routing */
@@ -151,6 +130,23 @@ static inline struct igmpv3_query *
 #include <linux/timer.h>
 #include <linux/in.h>
 
+static inline struct igmphdr *igmp_hdr(const struct sk_buff *skb)
+{
+       return (struct igmphdr *)skb_transport_header(skb);
+}
+
+static inline struct igmpv3_report *
+                       igmpv3_report_hdr(const struct sk_buff *skb)
+{
+       return (struct igmpv3_report *)skb_transport_header(skb);
+}
+
+static inline struct igmpv3_query *
+                       igmpv3_query_hdr(const struct sk_buff *skb)
+{
+       return (struct igmpv3_query *)skb_transport_header(skb);
+}
+
 extern int sysctl_igmp_max_memberships;
 extern int sysctl_igmp_max_msf;