svn commit: r233000 - head/sys/geom/part

Andrey V. Elsukov ae at FreeBSD.org
Thu Mar 15 08:39:11 UTC 2012


Author: ae
Date: Thu Mar 15 08:39:10 2012
New Revision: 233000
URL: http://svn.freebsd.org/changeset/base/233000

Log:
  Add MODULE_DEPEND() to geom_part modules.
  
  MFC after:	2 weeks

Modified:
  head/sys/geom/part/g_part.c
  head/sys/geom/part/g_part.h

Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c	Thu Mar 15 06:01:21 2012	(r232999)
+++ head/sys/geom/part/g_part.c	Thu Mar 15 08:39:10 2012	(r233000)
@@ -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.

Modified: head/sys/geom/part/g_part.h
==============================================================================
--- head/sys/geom/part/g_part.h	Thu Mar 15 06:01:21 2012	(r232999)
+++ head/sys/geom/part/g_part.h	Thu Mar 15 08:39:10 2012	(r233000)
@@ -208,6 +208,7 @@ int g_part_modevent(module_t, int, struc
 	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_ */


More information about the svn-src-head mailing list