Commit 3f2b6dd3 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 initializer for fx/ext3/namei.c

parent 9d6bae4b
......@@ -992,13 +992,13 @@ struct dentry *ext3_get_parent(struct dentry *child)
#define S_SHIFT 12
static unsigned char ext3_type_by_mode[S_IFMT >> S_SHIFT] = {
[S_IFREG >> S_SHIFT] EXT3_FT_REG_FILE,
[S_IFDIR >> S_SHIFT] EXT3_FT_DIR,
[S_IFCHR >> S_SHIFT] EXT3_FT_CHRDEV,
[S_IFBLK >> S_SHIFT] EXT3_FT_BLKDEV,
[S_IFIFO >> S_SHIFT] EXT3_FT_FIFO,
[S_IFSOCK >> S_SHIFT] EXT3_FT_SOCK,
[S_IFLNK >> S_SHIFT] EXT3_FT_SYMLINK,
[S_IFREG >> S_SHIFT] = EXT3_FT_REG_FILE,
[S_IFDIR >> S_SHIFT] = EXT3_FT_DIR,
[S_IFCHR >> S_SHIFT] = EXT3_FT_CHRDEV,
[S_IFBLK >> S_SHIFT] = EXT3_FT_BLKDEV,
[S_IFIFO >> S_SHIFT] = EXT3_FT_FIFO,
[S_IFSOCK >> S_SHIFT] = EXT3_FT_SOCK,
[S_IFLNK >> S_SHIFT] = EXT3_FT_SYMLINK,
};
static inline void ext3_set_de_type(struct super_block *sb,
......
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