Whamcloud - gitweb
LU-16120 build: Add support for kobj_type default_groups
[fs/lustre-release.git] / lustre / ofd / lproc_ofd.c
index 32ff9d3..f24bb16 100644 (file)
@@ -1129,6 +1129,8 @@ static struct attribute *ofd_attrs[] = {
        NULL,
 };
 
        NULL,
 };
 
+KOBJ_ATTRIBUTE_GROUPS(ofd); /* creates ofd_groups from ofd_attrs */
+
 /**
  * Initialize all needed procfs entries for OFD device.
  *
 /**
  * Initialize all needed procfs entries for OFD device.
  *
@@ -1147,7 +1149,7 @@ int ofd_tunables_init(struct ofd_device *ofd)
        /* lprocfs must be setup before the ofd so state can be safely added
         * to /proc incrementally as the ofd is setup
         */
        /* lprocfs must be setup before the ofd so state can be safely added
         * to /proc incrementally as the ofd is setup
         */
-       obd->obd_ktype.default_attrs = ofd_attrs;
+       obd->obd_ktype.default_groups = KOBJ_ATTR_GROUPS(ofd);
        obd->obd_vars = lprocfs_ofd_obd_vars;
        rc = lprocfs_obd_setup(obd, false);
        if (rc) {
        obd->obd_vars = lprocfs_ofd_obd_vars;
        rc = lprocfs_obd_setup(obd, false);
        if (rc) {