svn commit: r368025 - head/sys/net
Kristof Provost
kp at FreeBSD.org
Wed Nov 25 17:15:25 UTC 2020
Author: kp
Date: Wed Nov 25 17:15:24 2020
New Revision: 368025
URL: https://svnweb.freebsd.org/changeset/base/368025
Log:
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
Modified:
head/sys/net/if.c
Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c Wed Nov 25 17:12:21 2020 (r368024)
+++ head/sys/net/if.c Wed Nov 25 17:15:24 2020 (r368025)
@@ -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)
{
More information about the svn-src-all
mailing list