Whamcloud - gitweb
LU-6977 lod: do_index_try should be called first
[fs/lustre-release.git] / lustre / mgc / lproc_mgc.c
index 8cfbb5c..5102ad6 100644 (file)
@@ -41,7 +41,7 @@
 #include <lprocfs_status.h>
 #include "mgc_internal.h"
 
-#ifdef LPROCFS
+#ifdef CONFIG_PROC_FS
 
 LPROC_SEQ_FOPS_RO_TYPE(mgc, uuid);
 LPROC_SEQ_FOPS_RO_TYPE(mgc, connect_flags);
@@ -76,6 +76,6 @@ struct lprocfs_vars lprocfs_mgc_obd_vars[] = {
          .fops =       &mgc_state_fops         },
        { .name =       "ir_state",
          .fops =       &mgc_ir_state_fops      },
-       { 0 }
+       { NULL }
 };
-#endif /* LPROCFS */
+#endif /* CONFIG_PROC_FS */