diff options
author | ae <ae@FreeBSD.org> | 2012-03-15 08:39:10 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2012-03-15 08:39:10 +0000 |
commit | 924dbaa61e768e166250cebdb7a3ed484f9b0d3f (patch) | |
tree | 3d821dd3aea6614ac66f85bf495ca730f129af29 /sys | |
parent | 894c8dc15b15f224fb404ea9703f92f1832e7a0b (diff) | |
download | FreeBSD-src-924dbaa61e768e166250cebdb7a3ed484f9b0d3f.zip FreeBSD-src-924dbaa61e768e166250cebdb7a3ed484f9b0d3f.tar.gz |
Add MODULE_DEPEND() to geom_part modules.
MFC after: 2 weeks
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/part/g_part.c | 1 | ||||
-rw-r--r-- | sys/geom/part/g_part.h | 3 |
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_ */ |