netipsec/!VIMAGE: don't declare/define spdcache_destroy on non-VIMAGE builds

this breaks MIPS compiles in universe
This commit is contained in:
Matt Macy 2018-05-24 23:47:27 +00:00
parent 0f8d79d977
commit c82dfce3ec

View File

@ -758,8 +758,9 @@ static struct spdcache_entry *spdcache_entry_alloc(
const struct secpolicyindex *spidx, const struct secpolicyindex *spidx,
struct secpolicy *policy); struct secpolicy *policy);
static void spdcache_entry_free(struct spdcache_entry *entry); static void spdcache_entry_free(struct spdcache_entry *entry);
#ifdef VIMAGE
static void spdcache_destroy(void); static void spdcache_destroy(void);
#endif
#define DBG_IPSEC_INITREF(t, p) do { \ #define DBG_IPSEC_INITREF(t, p) do { \
refcount_init(&(p)->refcnt, 1); \ refcount_init(&(p)->refcnt, 1); \
@ -8282,6 +8283,7 @@ spdcache_clear(void)
} }
} }
#ifdef VIMAGE
void void
spdcache_destroy(void) spdcache_destroy(void)
{ {
@ -8297,7 +8299,7 @@ spdcache_destroy(void)
free(V_spdcache_lock, M_IPSEC_SPDCACHE); free(V_spdcache_lock, M_IPSEC_SPDCACHE);
} }
} }
#endif
void void
key_init(void) key_init(void)
{ {