Commit 5c3d8638 authored by Art Haas's avatar Art Haas Committed by Jeff Garzik

[PATCH] C99 designated initializers for fs/romfs

parent 52c67555
...@@ -456,16 +456,16 @@ romfs_readpage(struct file *file, struct page * page) ...@@ -456,16 +456,16 @@ romfs_readpage(struct file *file, struct page * page)
/* Mapping from our types to the kernel */ /* Mapping from our types to the kernel */
static struct address_space_operations romfs_aops = { static struct address_space_operations romfs_aops = {
readpage: romfs_readpage .readpage = romfs_readpage
}; };
static struct file_operations romfs_dir_operations = { static struct file_operations romfs_dir_operations = {
read: generic_read_dir, .read = generic_read_dir,
readdir: romfs_readdir, .readdir = romfs_readdir,
}; };
static struct inode_operations romfs_dir_inode_operations = { static struct inode_operations romfs_dir_inode_operations = {
lookup: romfs_lookup, .lookup = romfs_lookup,
}; };
static mode_t romfs_modemap[] = static mode_t romfs_modemap[] =
...@@ -590,10 +590,10 @@ static void destroy_inodecache(void) ...@@ -590,10 +590,10 @@ static void destroy_inodecache(void)
} }
static struct super_operations romfs_ops = { static struct super_operations romfs_ops = {
alloc_inode: romfs_alloc_inode, .alloc_inode = romfs_alloc_inode,
destroy_inode: romfs_destroy_inode, .destroy_inode = romfs_destroy_inode,
read_inode: romfs_read_inode, .read_inode = romfs_read_inode,
statfs: romfs_statfs, .statfs = romfs_statfs,
}; };
static struct super_block *romfs_get_sb(struct file_system_type *fs_type, static struct super_block *romfs_get_sb(struct file_system_type *fs_type,
...@@ -603,11 +603,11 @@ static struct super_block *romfs_get_sb(struct file_system_type *fs_type, ...@@ -603,11 +603,11 @@ static struct super_block *romfs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type romfs_fs_type = { static struct file_system_type romfs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "romfs", .name = "romfs",
get_sb: romfs_get_sb, .get_sb = romfs_get_sb,
kill_sb: kill_block_super, .kill_sb = kill_block_super,
fs_flags: FS_REQUIRES_DEV, .fs_flags = FS_REQUIRES_DEV,
}; };
static int __init init_romfs_fs(void) static int __init init_romfs_fs(void)
......
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