From 5284aff594bd60c552c05674cf1d18fa2399c980 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Thu, 15 Mar 2012 08:39:10 +0000 Subject: [PATCH] Add MODULE_DEPEND() to geom_part modules. MFC after: 2 weeks --- sys/geom/part/g_part.c | 1 + sys/geom/part/g_part.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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_ */