Whamcloud - gitweb
LU-16120 build: Add support for kobj_type default_groups
[fs/lustre-release.git] / lustre / mdc / lproc_mdc.c
index 26e86a8..f932dfc 100644 (file)
@@ -761,11 +761,13 @@ static struct attribute *mdc_attrs[] = {
        NULL,
 };
 
+KOBJ_ATTRIBUTE_GROUPS(mdc); /* creates mdc_groups */
+
 int mdc_tunables_init(struct obd_device *obd)
 {
        int rc;
 
-       obd->obd_ktype.default_attrs = mdc_attrs;
+       obd->obd_ktype.default_groups = KOBJ_ATTR_GROUPS(mdc);
        obd->obd_vars = lprocfs_mdc_obd_vars;
 
        rc = lprocfs_obd_setup(obd, false);