Whamcloud - gitweb
Build properly with lprocfs disabled.
authoradilger <adilger>
Sat, 2 Nov 2002 00:26:06 +0000 (00:26 +0000)
committeradilger <adilger>
Sat, 2 Nov 2002 00:26:06 +0000 (00:26 +0000)
lustre/ldlm/ldlm_resource.c

index 954e46c..2f670f8 100644 (file)
@@ -41,6 +41,7 @@ void ldlm_proc_cleanup(struct obd_device *obd)
 }
 
 /* FIXME: This can go away when we start to really use lprocfs */
+#ifndef LPROC_SNMP
 static int lprocfs_ll_rd(char *page, char **start, off_t off,
                          int count, int *eof, void *data)
 {
@@ -51,6 +52,7 @@ static int lprocfs_ll_rd(char *page, char **start, off_t off,
 
         return len;
 }
+#endif
 
 struct ldlm_namespace *ldlm_namespace_new(char *name, __u32 client)
 {