Commit 3de91f92 authored by Al Viro's avatar Al Viro

mode_t whack-a-mole...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 193deee1
...@@ -53,7 +53,7 @@ struct lprocfs_vars { ...@@ -53,7 +53,7 @@ struct lprocfs_vars {
/** /**
* /proc file mode. * /proc file mode.
*/ */
mode_t proc_mode; umode_t proc_mode;
}; };
struct lprocfs_static_vars { struct lprocfs_static_vars {
...@@ -600,11 +600,11 @@ extern int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list); ...@@ -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_obd_cleanup(struct obd_device *obd);
extern int lprocfs_seq_create(proc_dir_entry_t *parent, const char *name, 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, const struct file_operations *seq_fops,
void *data); void *data);
extern int lprocfs_obd_seq_create(struct obd_device *dev, const char *name, 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, const struct file_operations *seq_fops,
void *data); void *data);
......
...@@ -73,7 +73,7 @@ proc_dir_entry_t *lprocfs_add_simple(struct proc_dir_entry *root, ...@@ -73,7 +73,7 @@ proc_dir_entry_t *lprocfs_add_simple(struct proc_dir_entry *root,
struct file_operations *fops) struct file_operations *fops)
{ {
proc_dir_entry_t *proc; proc_dir_entry_t *proc;
mode_t mode = 0; umode_t mode = 0;
if (root == NULL || name == NULL || fops == NULL) if (root == NULL || name == NULL || fops == NULL)
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
...@@ -140,7 +140,7 @@ int lprocfs_add_vars(struct proc_dir_entry *root, struct lprocfs_vars *list, ...@@ -140,7 +140,7 @@ int lprocfs_add_vars(struct proc_dir_entry *root, struct lprocfs_vars *list,
while (list->name != NULL) { while (list->name != NULL) {
struct proc_dir_entry *proc; struct proc_dir_entry *proc;
mode_t mode = 0; umode_t mode = 0;
if (list->proc_mode != 0000) { if (list->proc_mode != 0000) {
mode = list->proc_mode; mode = list->proc_mode;
...@@ -1899,7 +1899,7 @@ EXPORT_SYMBOL(lprocfs_find_named_value); ...@@ -1899,7 +1899,7 @@ EXPORT_SYMBOL(lprocfs_find_named_value);
int lprocfs_seq_create(proc_dir_entry_t *parent, int lprocfs_seq_create(proc_dir_entry_t *parent,
const char *name, const char *name,
mode_t mode, umode_t mode,
const struct file_operations *seq_fops, const struct file_operations *seq_fops,
void *data) void *data)
{ {
...@@ -1919,7 +1919,7 @@ EXPORT_SYMBOL(lprocfs_seq_create); ...@@ -1919,7 +1919,7 @@ EXPORT_SYMBOL(lprocfs_seq_create);
int lprocfs_obd_seq_create(struct obd_device *dev, int lprocfs_obd_seq_create(struct obd_device *dev,
const char *name, const char *name,
mode_t mode, umode_t mode,
const struct file_operations *seq_fops, const struct file_operations *seq_fops,
void *data) void *data)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment