svn commit: r334194 - head/sys/netipsec
Matt Macy
mmacy at FreeBSD.org
Thu May 24 23:47:28 UTC 2018
Author: mmacy
Date: Thu May 24 23:47:27 2018
New Revision: 334194
URL: https://svnweb.freebsd.org/changeset/base/334194
Log:
netipsec/!VIMAGE: don't declare/define spdcache_destroy on non-VIMAGE builds
this breaks MIPS compiles in universe
Modified:
head/sys/netipsec/key.c
Modified: head/sys/netipsec/key.c
==============================================================================
--- head/sys/netipsec/key.c Thu May 24 23:21:23 2018 (r334193)
+++ head/sys/netipsec/key.c Thu May 24 23:47:27 2018 (r334194)
@@ -758,9 +758,10 @@ static struct spdcache_entry *spdcache_entry_alloc(
const struct secpolicyindex *spidx,
struct secpolicy *policy);
static void spdcache_entry_free(struct spdcache_entry *entry);
+#ifdef VIMAGE
static void spdcache_destroy(void);
+#endif
-
#define DBG_IPSEC_INITREF(t, p) do { \
refcount_init(&(p)->refcnt, 1); \
KEYDBG(KEY_STAMP, \
@@ -8282,6 +8283,7 @@ spdcache_clear(void)
}
}
+#ifdef VIMAGE
void
spdcache_destroy(void)
{
@@ -8297,7 +8299,7 @@ spdcache_destroy(void)
free(V_spdcache_lock, M_IPSEC_SPDCACHE);
}
}
-
+#endif
void
key_init(void)
{
More information about the svn-src-all
mailing list