From bca0e1d2ac08064d720a14486c2dfb73f4961bef Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Wed, 25 Nov 2020 17:15:24 +0000 Subject: [PATCH] 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 --- sys/net/if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/if.c b/sys/net/if.c index 07078448e3f..b6248ff051a 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) {