Skip to content

Commit 0ecc833

Browse files
author
Al Viro
committed
mode_t, whack-a-mole at 11...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent aee0c61 commit 0ecc833

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎drivers/net/wireless/ath/wil6210/debugfs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_iomem_x32, wil_debugfs_iomem_x32_get,
216216
wil_debugfs_iomem_x32_set, "0x%08llx\n");
217217

218218
static struct dentry *wil_debugfs_create_iomem_x32(const char *name,
219-
mode_t mode,
219+
umode_t mode,
220220
struct dentry *parent,
221221
void __iomem *value)
222222
{
@@ -367,7 +367,7 @@ static const struct file_operations fops_ioblob = {
367367

368368
static
369369
struct dentry *wil_debugfs_create_ioblob(const char *name,
370-
mode_t mode,
370+
umode_t mode,
371371
struct dentry *parent,
372372
struct debugfs_blob_wrapper *blob)
373373
{

‎drivers/staging/dgrp/dgrp_common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ enum {
120120
struct dgrp_proc_entry {
121121
int id; /* Integer identifier */
122122
const char *name; /* ASCII identifier */
123-
mode_t mode; /* File access permissions */
123+
umode_t mode; /* File access permissions */
124124
struct dgrp_proc_entry *child; /* Child pointer */
125125

126126
/* file ops to use, pass NULL to use default */

‎drivers/staging/dgrp/dgrp_specproc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static void register_proc_table(struct dgrp_proc_entry *table,
228228
{
229229
struct proc_dir_entry *de;
230230
int len;
231-
mode_t mode;
231+
umode_t mode;
232232

233233
if (table == NULL)
234234
return;

‎fs/f2fs/acl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ int f2fs_acl_chmod(struct inode *inode)
299299
struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
300300
struct posix_acl *acl;
301301
int error;
302-
mode_t mode = get_inode_mode(inode);
302+
umode_t mode = get_inode_mode(inode);
303303

304304
if (!test_opt(sbi, POSIX_ACL))
305305
return 0;

‎fs/f2fs/dir.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = {
6060

6161
static void set_de_type(struct f2fs_dir_entry *de, struct inode *inode)
6262
{
63-
mode_t mode = inode->i_mode;
63+
umode_t mode = inode->i_mode;
6464
de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT];
6565
}
6666

‎fs/proc/self.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static const struct inode_operations proc_self_inode_operations = {
5151
void __init proc_self_init(void)
5252
{
5353
struct proc_dir_entry *proc_self_symlink;
54-
mode_t mode;
54+
umode_t mode;
5555

5656
mode = S_IFLNK | S_IRWXUGO;
5757
proc_self_symlink = proc_create("self", mode, NULL, NULL );

‎lib/notifier-error-inject.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static int debugfs_errno_get(void *data, u64 *val)
1717
DEFINE_SIMPLE_ATTRIBUTE(fops_errno, debugfs_errno_get, debugfs_errno_set,
1818
"%lld\n");
1919

20-
static struct dentry *debugfs_create_errno(const char *name, mode_t mode,
20+
static struct dentry *debugfs_create_errno(const char *name, umode_t mode,
2121
struct dentry *parent, int *value)
2222
{
2323
return debugfs_create_file(name, mode, parent, value, &fops_errno);
@@ -50,7 +50,7 @@ struct dentry *notifier_err_inject_init(const char *name, struct dentry *parent,
5050
struct notifier_err_inject *err_inject, int priority)
5151
{
5252
struct notifier_err_inject_action *action;
53-
mode_t mode = S_IFREG | S_IRUSR | S_IWUSR;
53+
umode_t mode = S_IFREG | S_IRUSR | S_IWUSR;
5454
struct dentry *dir;
5555
struct dentry *actions_dir;
5656

0 commit comments

Comments
 (0)