diff options
-rw-r--r-- | fs/affs/affs.h | 2 | ||||
-rw-r--r-- | fs/affs/amigaffs.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 9cad9b4a9af7..45a0ce45d7b4 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h | |||
@@ -136,7 +136,7 @@ extern int affs_remove_header(struct dentry *dentry); | |||
136 | extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh); | 136 | extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh); |
137 | extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh); | 137 | extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh); |
138 | extern void secs_to_datestamp(time_t secs, struct affs_date *ds); | 138 | extern void secs_to_datestamp(time_t secs, struct affs_date *ds); |
139 | extern mode_t prot_to_mode(u32 prot); | 139 | extern umode_t prot_to_mode(u32 prot); |
140 | extern void mode_to_prot(struct inode *inode); | 140 | extern void mode_to_prot(struct inode *inode); |
141 | extern void affs_error(struct super_block *sb, const char *function, const char *fmt, ...); | 141 | extern void affs_error(struct super_block *sb, const char *function, const char *fmt, ...); |
142 | extern void affs_warning(struct super_block *sb, const char *function, const char *fmt, ...); | 142 | extern void affs_warning(struct super_block *sb, const char *function, const char *fmt, ...); |
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c index de37ec842340..52a6407682e6 100644 --- a/fs/affs/amigaffs.c +++ b/fs/affs/amigaffs.c | |||
@@ -390,10 +390,10 @@ secs_to_datestamp(time_t secs, struct affs_date *ds) | |||
390 | ds->ticks = cpu_to_be32(secs * 50); | 390 | ds->ticks = cpu_to_be32(secs * 50); |
391 | } | 391 | } |
392 | 392 | ||
393 | mode_t | 393 | umode_t |
394 | prot_to_mode(u32 prot) | 394 | prot_to_mode(u32 prot) |
395 | { | 395 | { |
396 | int mode = 0; | 396 | umode_t mode = 0; |
397 | 397 | ||
398 | if (!(prot & FIBF_NOWRITE)) | 398 | if (!(prot & FIBF_NOWRITE)) |
399 | mode |= S_IWUSR; | 399 | mode |= S_IWUSR; |
@@ -421,7 +421,7 @@ void | |||
421 | mode_to_prot(struct inode *inode) | 421 | mode_to_prot(struct inode *inode) |
422 | { | 422 | { |
423 | u32 prot = AFFS_I(inode)->i_protect; | 423 | u32 prot = AFFS_I(inode)->i_protect; |
424 | mode_t mode = inode->i_mode; | 424 | umode_t mode = inode->i_mode; |
425 | 425 | ||
426 | if (!(mode & S_IXUSR)) | 426 | if (!(mode & S_IXUSR)) |
427 | prot |= FIBF_NOEXECUTE; | 427 | prot |= FIBF_NOEXECUTE; |