From: Art Haas <ahaas@airmail.net>
To: linux-kernel@vger.kernel.org
Cc: Linus Torvalds <torvalds@transmeta.com>
Subject: [PATCH] C99 designated initializers for fs/umsdos
Date: Tue, 5 Nov 2002 14:44:22 -0600 [thread overview]
Message-ID: <20021105204422.GC32444@debian> (raw)
Hi.
Here's a small set of patches that switch fs/umsdos to use C99
designated initializers. The patches are against 2.5.46.
Mail to the listed maintainer Matija Nalis <mnalis-umsdos@voyager.hr>
bounces for me. :-(
Art Haas
--- linux-2.5.46/fs/umsdos/dir.c.old 2002-07-05 18:42:23.000000000 -0500
+++ linux-2.5.46/fs/umsdos/dir.c 2002-11-05 09:35:59.000000000 -0600
@@ -48,8 +48,8 @@
struct dentry_operations umsdos_dentry_operations =
{
- d_revalidate: umsdos_dentry_validate,
- d_delete: umsdos_dentry_dput,
+ .d_revalidate = umsdos_dentry_validate,
+ .d_delete = umsdos_dentry_dput,
};
struct UMSDOS_DIR_ONCE {
@@ -790,21 +790,21 @@
struct file_operations umsdos_dir_operations =
{
- read: generic_read_dir,
- readdir: UMSDOS_readdir,
- ioctl: UMSDOS_ioctl_dir,
+ .read = generic_read_dir,
+ .readdir = UMSDOS_readdir,
+ .ioctl = UMSDOS_ioctl_dir,
};
struct inode_operations umsdos_dir_inode_operations =
{
- create: UMSDOS_create,
- lookup: UMSDOS_lookup,
- link: UMSDOS_link,
- unlink: UMSDOS_unlink,
- symlink: UMSDOS_symlink,
- mkdir: UMSDOS_mkdir,
- rmdir: UMSDOS_rmdir,
- mknod: UMSDOS_mknod,
- rename: UMSDOS_rename,
- setattr: UMSDOS_notify_change,
+ .create = UMSDOS_create,
+ .lookup = UMSDOS_lookup,
+ .link = UMSDOS_link,
+ .unlink = UMSDOS_unlink,
+ .symlink = UMSDOS_symlink,
+ .mkdir = UMSDOS_mkdir,
+ .rmdir = UMSDOS_rmdir,
+ .mknod = UMSDOS_mknod,
+ .rename = UMSDOS_rename,
+ .setattr = UMSDOS_notify_change,
};
--- linux-2.5.46/fs/umsdos/inode.c.old 2002-07-05 18:42:04.000000000 -0500
+++ linux-2.5.46/fs/umsdos/inode.c 2002-11-05 09:35:59.000000000 -0600
@@ -108,14 +108,14 @@
}
static struct inode_operations umsdos_file_inode_operations = {
- truncate: fat_truncate,
- setattr: UMSDOS_notify_change,
+ .truncate = fat_truncate,
+ .setattr = UMSDOS_notify_change,
};
static struct inode_operations umsdos_symlink_inode_operations = {
- readlink: page_readlink,
- follow_link: page_follow_link,
- setattr: UMSDOS_notify_change,
+ .readlink = page_readlink,
+ .follow_link = page_follow_link,
+ .setattr = UMSDOS_notify_change,
};
/*
@@ -335,12 +335,12 @@
static struct super_operations umsdos_sops =
{
- write_inode: UMSDOS_write_inode,
- put_inode: UMSDOS_put_inode,
- delete_inode: fat_delete_inode,
- put_super: UMSDOS_put_super,
- statfs: UMSDOS_statfs,
- clear_inode: fat_clear_inode,
+ .write_inode = UMSDOS_write_inode,
+ .put_inode = UMSDOS_put_inode,
+ .delete_inode = fat_delete_inode,
+ .put_super = UMSDOS_put_super,
+ .statfs = UMSDOS_statfs,
+ .clear_inode = fat_clear_inode,
};
int UMSDOS_statfs(struct super_block *sb,struct statfs *buf)
--- linux-2.5.46/fs/umsdos/rdir.c.old 2002-07-05 18:42:18.000000000 -0500
+++ linux-2.5.46/fs/umsdos/rdir.c 2002-11-05 09:35:59.000000000 -0600
@@ -231,18 +231,18 @@
*/
struct file_operations umsdos_rdir_operations =
{
- read: generic_read_dir,
- readdir: UMSDOS_rreaddir,
- ioctl: UMSDOS_ioctl_dir,
+ .read = generic_read_dir,
+ .readdir = UMSDOS_rreaddir,
+ .ioctl = UMSDOS_ioctl_dir,
};
struct inode_operations umsdos_rdir_inode_operations =
{
- create: msdos_create,
- lookup: UMSDOS_rlookup,
- unlink: msdos_unlink,
- mkdir: msdos_mkdir,
- rmdir: UMSDOS_rrmdir,
- rename: msdos_rename,
- setattr: UMSDOS_notify_change,
+ .create = msdos_create,
+ .lookup = UMSDOS_rlookup,
+ .unlink = msdos_unlink,
+ .mkdir = msdos_mkdir,
+ .rmdir = UMSDOS_rrmdir,
+ .rename = msdos_rename,
+ .setattr = UMSDOS_notify_change,
};
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759
reply other threads:[~2002-11-05 20:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021105204422.GC32444@debian \
--to=ahaas@airmail.net \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox