From 7218f223433e60fbca0613f50936dcf2ddc9313c Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 13 Jul 2018 18:21:38 +0000 Subject: [PATCH] g_eli_key_cmp is used only in the kernel, so only define it in the kernel. --- sys/geom/eli/g_eli_key_cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/geom/eli/g_eli_key_cache.c b/sys/geom/eli/g_eli_key_cache.c index 4d880c7c844f..431c90f5d9f2 100644 --- a/sys/geom/eli/g_eli_key_cache.c +++ b/sys/geom/eli/g_eli_key_cache.c @@ -61,8 +61,6 @@ static uint64_t g_eli_key_cache_misses; SYSCTL_UQUAD(_kern_geom_eli, OID_AUTO, key_cache_misses, CTLFLAG_RW, &g_eli_key_cache_misses, 0, "Key cache misses"); -#endif /* _KERNEL */ - static int g_eli_key_cmp(const struct g_eli_key *a, const struct g_eli_key *b) { @@ -73,6 +71,7 @@ g_eli_key_cmp(const struct g_eli_key *a, const struct g_eli_key *b) return (-1); return (0); } +#endif /* _KERNEL */ void g_eli_key_fill(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno)