aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-05-24 23:47:27 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-05-24 23:47:27 +0000
commitc82dfce3ec06b8de66aa821e5f39ca0c890989b0 (patch)
tree9f1c496543e4922268877f1226c7144741411ad5 /sys
parent0f8d79d977770c7b7a69ee3a98331c4133b99470 (diff)
downloadsrc-c82dfce3ec06b8de66aa821e5f39ca0c890989b0.tar.gz
src-c82dfce3ec06b8de66aa821e5f39ca0c890989b0.zip
netipsec/!VIMAGE: don't declare/define spdcache_destroy on non-VIMAGE builds
this breaks MIPS compiles in universe
Notes
Notes: svn path=/head/; revision=334194
Diffstat (limited to 'sys')
-rw-r--r--sys/netipsec/key.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index b2791fac2eff..418bf3bc4bce 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -758,8 +758,9 @@ 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); \
@@ -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)
{