aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2020-11-25 17:15:24 +0000
committerKristof Provost <kp@FreeBSD.org>2020-11-25 17:15:24 +0000
commitbca0e1d2ac08064d720a14486c2dfb73f4961bef (patch)
tree964178d46981b129b41f4ad58213c99a9d2c9566 /sys/net/if.c
parent07ef907f6efe043c34bad3b37bb88739ce10f95a (diff)
downloadsrc-bca0e1d2ac08064d720a14486c2dfb73f4961bef.tar.gz
src-bca0e1d2ac08064d720a14486c2dfb73f4961bef.zip
if: Fix non-VIMAGE build
if_link_ifnet() and if_unlink_ifnet() are needed even when VIMAGE is not enabled. MFC after: 2 weeks Sponsored by: Modirum MDPay
Notes
Notes: svn path=/head/; revision=368025
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 07078448e3f6..b6248ff051ab 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -468,6 +468,7 @@ vnet_if_uninit(const void *unused __unused)
}
VNET_SYSUNINIT(vnet_if_uninit, SI_SUB_INIT_IF, SI_ORDER_FIRST,
vnet_if_uninit, NULL);
+#endif
static void
if_link_ifnet(struct ifnet *ifp)
@@ -504,6 +505,7 @@ if_unlink_ifnet(struct ifnet *ifp, bool vmove)
return (found);
}
+#ifdef VIMAGE
static void
vnet_if_return(const void *unused __unused)
{