From c82dfce3ec06b8de66aa821e5f39ca0c890989b0 Mon Sep 17 00:00:00 2001 From: Matt Macy Date: Thu, 24 May 2018 23:47:27 +0000 Subject: netipsec/!VIMAGE: don't declare/define spdcache_destroy on non-VIMAGE builds this breaks MIPS compiles in universe --- sys/netipsec/key.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/netipsec') 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) { -- cgit v1.2.3