aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-07-06 15:04:23 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-07-06 15:04:23 -0400
commit3de91f92377f1477c88a58bcad5b5615ffc4aad5 (patch)
treedfb6b13c7796f60313aa44021c5beb4c9c8d925a
parent193deee199c55ce06bca2b3e5e2d3c10208a942a (diff)
mode_t whack-a-mole...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--drivers/staging/lustre/lustre/include/lprocfs_status.h6
-rw-r--r--drivers/staging/lustre/lustre/obdclass/lprocfs_status.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/lustre/lustre/include/lprocfs_status.h b/drivers/staging/lustre/lustre/include/lprocfs_status.h
index e770d0260576..55f182205d78 100644
--- a/drivers/staging/lustre/lustre/include/lprocfs_status.h
+++ b/drivers/staging/lustre/lustre/include/lprocfs_status.h
@@ -53,7 +53,7 @@ struct lprocfs_vars {
53 /** 53 /**
54 * /proc file mode. 54 * /proc file mode.
55 */ 55 */
56 mode_t proc_mode; 56 umode_t proc_mode;
57}; 57};
58 58
59struct lprocfs_static_vars { 59struct lprocfs_static_vars {
@@ -600,11 +600,11 @@ extern int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list);
600extern int lprocfs_obd_cleanup(struct obd_device *obd); 600extern int lprocfs_obd_cleanup(struct obd_device *obd);
601 601
602extern int lprocfs_seq_create(proc_dir_entry_t *parent, const char *name, 602extern int lprocfs_seq_create(proc_dir_entry_t *parent, const char *name,
603 mode_t mode, 603 umode_t mode,
604 const struct file_operations *seq_fops, 604 const struct file_operations *seq_fops,
605 void *data); 605 void *data);
606extern int lprocfs_obd_seq_create(struct obd_device *dev, const char *name, 606extern int lprocfs_obd_seq_create(struct obd_device *dev, const char *name,
607 mode_t mode, 607 umode_t mode,
608 const struct file_operations *seq_fops, 608 const struct file_operations *seq_fops,
609 void *data); 609 void *data);
610 610
diff --git a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
index 3b157f89c300..f7af3d6a4efc 100644
--- a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
+++ b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
@@ -73,7 +73,7 @@ proc_dir_entry_t *lprocfs_add_simple(struct proc_dir_entry *root,
73 struct file_operations *fops) 73 struct file_operations *fops)
74{ 74{
75 proc_dir_entry_t *proc; 75 proc_dir_entry_t *proc;
76 mode_t mode = 0; 76 umode_t mode = 0;
77 77
78 if (root == NULL || name == NULL || fops == NULL) 78 if (root == NULL || name == NULL || fops == NULL)
79 return ERR_PTR(-EINVAL); 79 return ERR_PTR(-EINVAL);
@@ -140,7 +140,7 @@ int lprocfs_add_vars(struct proc_dir_entry *root, struct lprocfs_vars *list,
140 140
141 while (list->name != NULL) { 141 while (list->name != NULL) {
142 struct proc_dir_entry *proc; 142 struct proc_dir_entry *proc;
143 mode_t mode = 0; 143 umode_t mode = 0;
144 144
145 if (list->proc_mode != 0000) { 145 if (list->proc_mode != 0000) {
146 mode = list->proc_mode; 146 mode = list->proc_mode;
@@ -1899,7 +1899,7 @@ EXPORT_SYMBOL(lprocfs_find_named_value);
1899 1899
1900int lprocfs_seq_create(proc_dir_entry_t *parent, 1900int lprocfs_seq_create(proc_dir_entry_t *parent,
1901 const char *name, 1901 const char *name,
1902 mode_t mode, 1902 umode_t mode,
1903 const struct file_operations *seq_fops, 1903 const struct file_operations *seq_fops,
1904 void *data) 1904 void *data)
1905{ 1905{
@@ -1919,7 +1919,7 @@ EXPORT_SYMBOL(lprocfs_seq_create);
1919 1919
1920int lprocfs_obd_seq_create(struct obd_device *dev, 1920int lprocfs_obd_seq_create(struct obd_device *dev,
1921 const char *name, 1921 const char *name,
1922 mode_t mode, 1922 umode_t mode,
1923 const struct file_operations *seq_fops, 1923 const struct file_operations *seq_fops,
1924 void *data) 1924 void *data)
1925{ 1925{