diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index e618430cace0..97b58f5e7f2a 100644 --- a/sys/geom/geom_slice.c +++ b/sys/geom/geom_slice.c @@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$"); #include #include -static g_orphan_t g_slice_orphan; static g_access_t g_slice_access; static g_start_t g_slice_start; @@ -484,7 +483,7 @@ g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_co return (gp); } -static void +void g_slice_orphan(struct g_consumer *cp) { diff --git a/sys/geom/geom_slice.h b/sys/geom/geom_slice.h index 4003c8fa0ad8..cb7fbab2de5b 100644 --- a/sys/geom/geom_slice.h +++ b/sys/geom/geom_slice.h @@ -71,6 +71,7 @@ struct g_slicer { g_dumpconf_t g_slice_dumpconf; int g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...); void g_slice_spoiled(struct g_consumer *cp); +void g_slice_orphan(struct g_consumer *cp); #define G_SLICE_CONFIG_CHECK 0 #define G_SLICE_CONFIG_SET 1 #define G_SLICE_CONFIG_FORCE 2