Add missing ifdef NET_MPSAFE
This commit is contained in:
parent
411564dc9a
commit
d546b2176b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: key.c,v 1.226 2017/09/27 07:27:29 ozaki-r Exp $ */
|
||||
/* $NetBSD: key.c,v 1.227 2017/09/27 09:55:52 ozaki-r Exp $ */
|
||||
/* $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $ */
|
||||
/* $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $ */
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.226 2017/09/27 07:27:29 ozaki-r Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.227 2017/09/27 09:55:52 ozaki-r Exp $");
|
||||
|
||||
/*
|
||||
* This code is referd to RFC 2367
|
||||
|
@ -804,6 +804,7 @@ key_sp_refcnt(const struct secpolicy *sp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef NET_MPSAFE
|
||||
static void
|
||||
key_spd_pserialize_perform(void)
|
||||
{
|
||||
|
@ -821,6 +822,7 @@ key_spd_pserialize_perform(void)
|
|||
key_spd.psz_performing = false;
|
||||
cv_broadcast(&key_spd.cv_psz);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Remove the sp from the key_spd.splist and wait for references to the sp
|
||||
|
@ -1497,6 +1499,7 @@ key_freesp_so(struct secpolicy **sp)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef NET_MPSAFE
|
||||
static void
|
||||
key_sad_pserialize_perform(void)
|
||||
{
|
||||
|
@ -1514,6 +1517,7 @@ key_sad_pserialize_perform(void)
|
|||
key_sad.psz_performing = false;
|
||||
cv_broadcast(&key_sad.cv_psz);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Remove the sav from the savlist of its sah and wait for references to the sav
|
||||
|
|
Loading…
Reference in New Issue