diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index dd4d1a8b4c48..c50797237e87 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -146,6 +146,7 @@ static struct g_class g_part_class = { }; DECLARE_GEOM_CLASS(g_part_class, g_part); +MODULE_VERSION(g_part, 0); /* * Support functions. diff --git a/sys/geom/part/g_part.h b/sys/geom/part/g_part.h index eec4b501ac0a..35769789c5b0 100644 --- a/sys/geom/part/g_part.h +++ b/sys/geom/part/g_part.h @@ -208,6 +208,7 @@ int g_part_modevent(module_t, int, struct g_part_scheme *); name##_modevent, \ &name##_scheme \ }; \ - DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_ANY) + DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_ANY); \ + MODULE_DEPEND(name, g_part, 0, 0, 0) #endif /* !_GEOM_PART_H_ */