Unbreak options VIMAGE + nooptions INVARIANTS kernel builds.

Submitted by:	julian
Approved by:	julian (mentor)
This commit is contained in:
Marko Zec 2009-05-02 05:02:28 +00:00
parent 58a2bb4996
commit d7fcc52895
3 changed files with 3 additions and 3 deletions

View File

@ -1131,10 +1131,10 @@ bad:
int
rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate)
{
INIT_VNET_NET(curvnet);
/* XXX dst may be overwritten, can we move this to below */
int dlen = SA_SIZE(dst), glen = SA_SIZE(gate);
#ifdef INVARIANTS
INIT_VNET_NET(curvnet);
struct radix_node_head *rnh =
V_rt_tables[rt->rt_fibnum][dst->sa_family];
#endif

View File

@ -3617,7 +3617,9 @@ vnet_igmp_iattach(const void *unused __unused)
static int
vnet_igmp_idetach(const void *unused __unused)
{
#ifdef INVARIANTS
INIT_VNET_INET(curvnet);
#endif
CTR1(KTR_IGMPV3, "%s: tearing down", __func__);

View File

@ -188,9 +188,7 @@ tcp_tw_init(void)
void
tcp_twstart(struct tcpcb *tp)
{
#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
INIT_VNET_INET(tp->t_vnet);
#endif
struct tcptw *tw;
struct inpcb *inp = tp->t_inpcb;
int acknow;