diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 06:00:24 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:53 -0400 |
commit | 88187398cc5fa6650f38b9dcd5464667f468888f (patch) | |
tree | eb9d45cdbe4506340b1131951bc7f2dba2f2a796 | |
parent | a051f71ce97c53cde3ac64de64eb02d658d9308e (diff) |
debugfs-related mode_t whack-a-mole
all of those should be umode_t...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | Documentation/filesystems/debugfs.txt | 2 | ||||
-rw-r--r-- | drivers/mmc/card/block.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad_debugfs.c | 2 | ||||
-rw-r--r-- | fs/debugfs/file.c | 2 | ||||
-rw-r--r-- | fs/nfsd/fault_inject.c | 2 | ||||
-rw-r--r-- | include/linux/debugfs.h | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/filesystems/debugfs.txt b/Documentation/filesystems/debugfs.txt index 6872c91bce35..41865d62e5b9 100644 --- a/Documentation/filesystems/debugfs.txt +++ b/Documentation/filesystems/debugfs.txt | |||
@@ -133,7 +133,7 @@ file. | |||
133 | void __iomem *base; | 133 | void __iomem *base; |
134 | }; | 134 | }; |
135 | 135 | ||
136 | struct dentry *debugfs_create_regset32(const char *name, mode_t mode, | 136 | struct dentry *debugfs_create_regset32(const char *name, umode_t mode, |
137 | struct dentry *parent, | 137 | struct dentry *parent, |
138 | struct debugfs_regset32 *regset); | 138 | struct debugfs_regset32 *regset); |
139 | 139 | ||
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index c6a383d0244d..e5a3c7b6dedb 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c | |||
@@ -1685,7 +1685,7 @@ static int mmc_add_disk(struct mmc_blk_data *md) | |||
1685 | 1685 | ||
1686 | if ((md->area_type & MMC_BLK_DATA_AREA_BOOT) && | 1686 | if ((md->area_type & MMC_BLK_DATA_AREA_BOOT) && |
1687 | card->ext_csd.boot_ro_lockable) { | 1687 | card->ext_csd.boot_ro_lockable) { |
1688 | mode_t mode; | 1688 | umode_t mode; |
1689 | 1689 | ||
1690 | if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PWR_WP_DIS) | 1690 | if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PWR_WP_DIS) |
1691 | mode = S_IRUGO; | 1691 | mode = S_IRUGO; |
diff --git a/drivers/net/ethernet/brocade/bna/bnad_debugfs.c b/drivers/net/ethernet/brocade/bna/bnad_debugfs.c index 592ad3929f53..df18a8337624 100644 --- a/drivers/net/ethernet/brocade/bna/bnad_debugfs.c +++ b/drivers/net/ethernet/brocade/bna/bnad_debugfs.c | |||
@@ -531,7 +531,7 @@ static const struct file_operations bnad_debugfs_op_drvinfo = { | |||
531 | 531 | ||
532 | struct bnad_debugfs_entry { | 532 | struct bnad_debugfs_entry { |
533 | const char *name; | 533 | const char *name; |
534 | mode_t mode; | 534 | umode_t mode; |
535 | const struct file_operations *fops; | 535 | const struct file_operations *fops; |
536 | }; | 536 | }; |
537 | 537 | ||
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index ef023eef0464..21e93605161c 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c | |||
@@ -611,7 +611,7 @@ static const struct file_operations fops_regset32 = { | |||
611 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling | 611 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling |
612 | * code. | 612 | * code. |
613 | */ | 613 | */ |
614 | struct dentry *debugfs_create_regset32(const char *name, mode_t mode, | 614 | struct dentry *debugfs_create_regset32(const char *name, umode_t mode, |
615 | struct dentry *parent, | 615 | struct dentry *parent, |
616 | struct debugfs_regset32 *regset) | 616 | struct debugfs_regset32 *regset) |
617 | { | 617 | { |
diff --git a/fs/nfsd/fault_inject.c b/fs/nfsd/fault_inject.c index ce7f0758d84c..9559ce468732 100644 --- a/fs/nfsd/fault_inject.c +++ b/fs/nfsd/fault_inject.c | |||
@@ -72,7 +72,7 @@ int nfsd_fault_inject_init(void) | |||
72 | { | 72 | { |
73 | unsigned int i; | 73 | unsigned int i; |
74 | struct nfsd_fault_inject_op *op; | 74 | struct nfsd_fault_inject_op *op; |
75 | mode_t mode = S_IFREG | S_IRUSR | S_IWUSR; | 75 | umode_t mode = S_IFREG | S_IRUSR | S_IWUSR; |
76 | 76 | ||
77 | debug_dir = debugfs_create_dir("nfsd", NULL); | 77 | debug_dir = debugfs_create_dir("nfsd", NULL); |
78 | if (!debug_dir) | 78 | if (!debug_dir) |
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 6169c26fd8c8..ae36b72c22f3 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
@@ -86,7 +86,7 @@ struct dentry *debugfs_create_blob(const char *name, umode_t mode, | |||
86 | struct dentry *parent, | 86 | struct dentry *parent, |
87 | struct debugfs_blob_wrapper *blob); | 87 | struct debugfs_blob_wrapper *blob); |
88 | 88 | ||
89 | struct dentry *debugfs_create_regset32(const char *name, mode_t mode, | 89 | struct dentry *debugfs_create_regset32(const char *name, umode_t mode, |
90 | struct dentry *parent, | 90 | struct dentry *parent, |
91 | struct debugfs_regset32 *regset); | 91 | struct debugfs_regset32 *regset); |
92 | 92 | ||
@@ -208,7 +208,7 @@ static inline struct dentry *debugfs_create_blob(const char *name, umode_t mode, | |||
208 | } | 208 | } |
209 | 209 | ||
210 | static inline struct dentry *debugfs_create_regset32(const char *name, | 210 | static inline struct dentry *debugfs_create_regset32(const char *name, |
211 | mode_t mode, struct dentry *parent, | 211 | umode_t mode, struct dentry *parent, |
212 | struct debugfs_regset32 *regset) | 212 | struct debugfs_regset32 *regset) |
213 | { | 213 | { |
214 | return ERR_PTR(-ENODEV); | 214 | return ERR_PTR(-ENODEV); |