svn commit: r345313 - stable/11/sys/net

Kristof Provost kp at FreeBSD.org
Wed Mar 20 01:55:26 UTC 2019


Author: kp
Date: Wed Mar 20 01:55:24 2019
New Revision: 345313
URL: https://svnweb.freebsd.org/changeset/base/345313

Log:
  if_tun: Fix MFC r344794:
  
  VNET_DEFINE_STATIC does not exist on stable/11, so we should use 'static
  VNET_DEFINE' instead.

Modified:
  stable/11/sys/net/if_tun.c

Modified: stable/11/sys/net/if_tun.c
==============================================================================
--- stable/11/sys/net/if_tun.c	Tue Mar 19 23:44:26 2019	(r345312)
+++ stable/11/sys/net/if_tun.c	Wed Mar 20 01:55:24 2019	(r345313)
@@ -135,7 +135,7 @@ static int	tun_clone_match(struct if_clone *ifc, const
 static int	tun_clone_create(struct if_clone *, char *, size_t, caddr_t);
 static int	tun_clone_destroy(struct if_clone *, struct ifnet *);
 static struct unrhdr	*tun_unrhdr;
-VNET_DEFINE_STATIC(struct if_clone *, tun_cloner);
+static VNET_DEFINE(struct if_clone *, tun_cloner);
 #define V_tun_cloner VNET(tun_cloner)
 
 static d_open_t		tunopen;


More information about the svn-src-all mailing list