summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/geom/part/g_part.c1
-rw-r--r--sys/geom/part/g_part.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c
index dd4d1a8b4..c507972 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 eec4b50..3576978 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_ */
OpenPOWER on IntegriCloud