Merge remote-tracking branch 'staging/staging-next'
[deliverable/linux.git] / drivers / staging / lustre / lustre / obdclass / linux / linux-sysctl.c
index 8f70dd2686f9ddc8387dcd9d55b4445f73b54e3e..aea1abdcf29523d0b5854d8509572c19d54a4b48 100644 (file)
@@ -45,6 +45,7 @@
 
 #include "../../include/obd_support.h"
 #include "../../include/lprocfs_status.h"
+#include "../../include/obd_class.h"
 
 struct static_lustre_uintvalue_attr {
        struct {
@@ -95,8 +96,9 @@ LUSTRE_STATIC_UINT_ATTR(timeout, &obd_timeout);
 static ssize_t max_dirty_mb_show(struct kobject *kobj, struct attribute *attr,
                                 char *buf)
 {
-       return sprintf(buf, "%ul\n",
-                       obd_max_dirty_pages / (1 << (20 - PAGE_SHIFT)));
+       return sprintf(buf, "%lu\n",
+                      (unsigned long)obd_max_dirty_pages /
+                      (1 << (20 - PAGE_SHIFT)));
 }
 
 static ssize_t max_dirty_mb_store(struct kobject *kobj, struct attribute *attr,
This page took 0.023759 seconds and 5 git commands to generate.