Module Name: src
Committed By: ozaki-r
Date: Wed Sep 27 09:55:53 UTC 2017
Modified Files:
src/sys/netipsec: key.c
Log Message:
Add missing ifdef NET_MPSAFE
To generate a diff of this commit:
cvs rdiff -u -r1.226 -r1.227 src/sys/netipsec/key.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netipsec/key.c
diff -u src/sys/netipsec/key.c:1.226 src/sys/netipsec/key.c:1.227
--- src/sys/netipsec/key.c:1.226 Wed Sep 27 07:27:29 2017
+++ src/sys/netipsec/key.c Wed Sep 27 09:55:52 2017
@@ -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