]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/lustre/lustre/include/lprocfs_status.h
staging/lustre: fix build warnning on 32bit system
[karo-tx-linux.git] / drivers / staging / lustre / lustre / include / lprocfs_status.h
index e770d0260576a95af516511d90fdc62c94170c0b..294fb7807c8c1aa6dcbbd50c8ba0e8674f965136 100644 (file)
@@ -53,7 +53,7 @@ struct lprocfs_vars {
        /**
         * /proc file mode.
         */
-       mode_t                  proc_mode;
+       umode_t                 proc_mode;
 };
 
 struct lprocfs_static_vars {
@@ -600,11 +600,11 @@ extern int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list);
 extern int lprocfs_obd_cleanup(struct obd_device *obd);
 
 extern int lprocfs_seq_create(proc_dir_entry_t *parent, const char *name,
-                             mode_t mode,
+                             umode_t mode,
                              const struct file_operations *seq_fops,
                              void *data);
 extern int lprocfs_obd_seq_create(struct obd_device *dev, const char *name,
-                                 mode_t mode,
+                                 umode_t mode,
                                  const struct file_operations *seq_fops,
                                  void *data);
 
@@ -663,8 +663,8 @@ extern int lprocfs_write_u64_helper(const char *buffer, unsigned long count,
 extern int lprocfs_write_frac_u64_helper(const char *buffer,
                                         unsigned long count,
                                         __u64 *val, int mult);
-char *lprocfs_find_named_value(const char *buffer, const char *name,
-                               unsigned long *count);
+extern char *lprocfs_find_named_value(const char *buffer, const char *name,
+                                     size_t *count);
 void lprocfs_oh_tally(struct obd_histogram *oh, unsigned int value);
 void lprocfs_oh_tally_log2(struct obd_histogram *oh, unsigned int value);
 void lprocfs_oh_clear(struct obd_histogram *oh);