vxlan: fix multiple inclusion of vxlan.h
authorJiri Benc <jbenc@redhat.com>
Tue, 25 Aug 2015 16:36:50 +0000 (18:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2015 21:32:04 +0000 (14:32 -0700)
The vxlan_get_sk_family inline function was added after the last #endif,
making multiple inclusion of net/vxlan.h fail. Move it to the proper place.

Reported-by: Mark Rustad <mark.d.rustad@intel.com>
Fixes: 705cc62f6728c ("vxlan: provide access function for vxlan socket address family")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/vxlan.h

index 6b3234599a2c52463d91d985a283db7f5b1d417a..480a319b4c925f3c98dd3f3dff99817adeb10355 100644 (file)
@@ -241,9 +241,10 @@ static inline void vxlan_get_rx_port(struct net_device *netdev)
 {
 }
 #endif
-#endif
 
 static inline unsigned short vxlan_get_sk_family(struct vxlan_sock *vs)
 {
        return vs->sock->sk->sk_family;
 }
+
+#endif