Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 01:55:25 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r345313 - stable/11/sys/net
Message-ID:  <201903200155.x2K1tPRW024246@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903200155.x2K1tPRW024246>