summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-20 20:08:44 +0000
committerphk <phk@FreeBSD.org>2002-10-20 20:08:44 +0000
commitf0693daa1f5896bbd37f2ad85ba732389ac99646 (patch)
tree53de658b9779547539b82a0665656c12d3271da0
parent8bb7766bd681e0b07de1d3ebf8431708106f4279 (diff)
downloadFreeBSD-src-f0693daa1f5896bbd37f2ad85ba732389ac99646.zip
FreeBSD-src-f0693daa1f5896bbd37f2ad85ba732389ac99646.tar.gz
The g_id*() functions are not needed in the userland test-suite so
#ifdef _KERNEL them rather than deal with a copyin simulation. Sponsored by: DARPA & NAI Labs
-rw-r--r--sys/geom/geom_subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index 305d3551..3cea6b9 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -663,6 +663,7 @@ g_sanity(void *ptr)
}
}
+#ifdef _KERNEL
struct g_class *
g_idclass(struct geomidorname *p)
{
@@ -746,3 +747,4 @@ g_idprovider(struct geomidorname *p)
g_free(n);
return (NULL);
}
+#endif /* _KERNEL */
OpenPOWER on IntegriCloud