Date: Thu, 24 May 2018 23:47:27 +0000 (UTC) From: Matt Macy <mmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334194 - head/sys/netipsec Message-ID: <201805242347.w4ONlRA3090122@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805242347.w4ONlRA3090122>