2.5.42 qnx4fs (1/2): ISO C initializers
Anders Larsen
maintainerPATCH RESEND 1/1 2.5.42 qnx4fs (1/2): ISO C initializers
Hi Linus,
please apply this this patch (contributed by Art Haas), which changes the structure initializers in the qnx4fs code to the new ISO C style used by the rest of the kernel.
Cheers
Anders (qnx4fs maintainer)
fs/qnx4/dir.c +7 -7
@@ -85,17 +85,17 @@struct file_operations qnx4_dir_operations = { - read: generic_read_dir, - readdir: qnx4_readdir, - fsync: file_fsync, + .read = generic_read_dir, + .readdir = qnx4_readdir, + .fsync = file_fsync, };struct inode_operations qnx4_dir_inode_operations = { - lookup: qnx4_lookup, + .lookup = qnx4_lookup, #ifdef CONFIG_QNX4FS_RW - create: qnx4_create, - unlink: qnx4_unlink, - rmdir: qnx4_rmdir, + .create = qnx4_create, + .unlink = qnx4_unlink, + .rmdir = qnx4_rmdir, #endif };
fs/qnx4/file.c +7 -9
@@ -24,21 +24,19 @@*/ struct file_operations qnx4_file_operations = { - llseek: generic_file_llseek, - read: generic_file_read, + .llseek = generic_file_llseek, + .read = generic_file_read, + .mmap = generic_file_mmap, + .sendfile = generic_file_sendfile, #ifdef CONFIG_QNX4FS_RW - write: generic_file_write, + .write = generic_file_write, + .fsync = qnx4_sync_file, #endif - mmap: generic_file_mmap, -#ifdef CONFIG_QNX4FS_RW - fsync: qnx4_sync_file, -#endif - sendfile: generic_file_sendfile, };struct inode_operations qnx4_file_inode_operations = { #ifdef CONFIG_QNX4FS_RW - truncate: qnx4_truncate, + .truncate = qnx4_truncate, #endif };
fs/qnx4/inode.c +20 -22
62 lines not on this page · raw message