Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2018 18:21:38 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336255 - head/sys/geom/eli
Message-ID:  <201807131821.w6DILccE043897@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Jul 13 18:21:38 2018
New Revision: 336255
URL: https://svnweb.freebsd.org/changeset/base/336255

Log:
  g_eli_key_cmp is used only in the kernel, so only define it in the
  kernel.

Modified:
  head/sys/geom/eli/g_eli_key_cache.c

Modified: head/sys/geom/eli/g_eli_key_cache.c
==============================================================================
--- head/sys/geom/eli/g_eli_key_cache.c	Fri Jul 13 18:19:33 2018	(r336254)
+++ head/sys/geom/eli/g_eli_key_cache.c	Fri Jul 13 18:21:38 2018	(r336255)
@@ -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 
 		return (-1);
 	return (0);
 }
+#endif /* _KERNEL */
 
 void
 g_eli_key_fill(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807131821.w6DILccE043897>