Skip to content

Commit

Permalink
mode_t whack-a-mole...
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jul 6, 2013
1 parent 193deee commit 3de91f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/include/lprocfs_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct lprocfs_vars {
/**
* /proc file mode.
*/
mode_t proc_mode;
umode_t proc_mode;
};

struct lprocfs_static_vars {
Expand Down Expand Up @@ -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);

Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ proc_dir_entry_t *lprocfs_add_simple(struct proc_dir_entry *root,
struct file_operations *fops)
{
proc_dir_entry_t *proc;
mode_t mode = 0;
umode_t mode = 0;

if (root == NULL || name == NULL || fops == NULL)
return ERR_PTR(-EINVAL);
Expand Down Expand Up @@ -140,7 +140,7 @@ int lprocfs_add_vars(struct proc_dir_entry *root, struct lprocfs_vars *list,

while (list->name != NULL) {
struct proc_dir_entry *proc;
mode_t mode = 0;
umode_t mode = 0;

if (list->proc_mode != 0000) {
mode = list->proc_mode;
Expand Down Expand Up @@ -1899,7 +1899,7 @@ EXPORT_SYMBOL(lprocfs_find_named_value);

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)
{
Expand All @@ -1919,7 +1919,7 @@ EXPORT_SYMBOL(lprocfs_seq_create);

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)
{
Expand Down

0 comments on commit 3de91f9

Please sign in to comment.