Skip to content

Commit

Permalink
vxlan: fix multiple inclusion of vxlan.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: 705cc62 ("vxlan: provide access function for vxlan socket address family")
Signed-off-by: Jiri Benc <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jiri Benc authored and davem330 committed Aug 25, 2015
1 parent 081958e commit 48e92c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/net/vxlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 48e92c4

Please sign in to comment.