diff options
author | Paul Mackerras <paulus@samba.org> | 2006-03-28 21:24:50 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 21:24:50 -0500 |
commit | bac30d1a78d0f11c613968fc8b351a91ed465386 (patch) | |
tree | e52f3c876522a2f6047a6ec1c27df2e8a79486b8 /fs/devfs/base.c | |
parent | e8222502ee6157e2713da9e0792c21f4ad458d50 (diff) | |
parent | ca9ba4471c1203bb6e759b76e83167fec54fe590 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'fs/devfs/base.c')
-rw-r--r-- | fs/devfs/base.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/devfs/base.c b/fs/devfs/base.c index b621521e09d4..52f5059c4f31 100644 --- a/fs/devfs/base.c +++ b/fs/devfs/base.c | |||
@@ -856,14 +856,14 @@ static int devfsd_close(struct inode *inode, struct file *file); | |||
856 | #ifdef CONFIG_DEVFS_DEBUG | 856 | #ifdef CONFIG_DEVFS_DEBUG |
857 | static ssize_t stat_read(struct file *file, char __user *buf, size_t len, | 857 | static ssize_t stat_read(struct file *file, char __user *buf, size_t len, |
858 | loff_t * ppos); | 858 | loff_t * ppos); |
859 | static struct file_operations stat_fops = { | 859 | static const struct file_operations stat_fops = { |
860 | .open = nonseekable_open, | 860 | .open = nonseekable_open, |
861 | .read = stat_read, | 861 | .read = stat_read, |
862 | }; | 862 | }; |
863 | #endif | 863 | #endif |
864 | 864 | ||
865 | /* Devfs daemon file operations */ | 865 | /* Devfs daemon file operations */ |
866 | static struct file_operations devfsd_fops = { | 866 | static const struct file_operations devfsd_fops = { |
867 | .open = nonseekable_open, | 867 | .open = nonseekable_open, |
868 | .read = devfsd_read, | 868 | .read = devfsd_read, |
869 | .ioctl = devfsd_ioctl, | 869 | .ioctl = devfsd_ioctl, |
@@ -1842,8 +1842,8 @@ static int try_modload(struct devfs_entry *parent, struct fs_info *fs_info, | |||
1842 | 1842 | ||
1843 | static struct inode_operations devfs_iops; | 1843 | static struct inode_operations devfs_iops; |
1844 | static struct inode_operations devfs_dir_iops; | 1844 | static struct inode_operations devfs_dir_iops; |
1845 | static struct file_operations devfs_fops; | 1845 | static const struct file_operations devfs_fops; |
1846 | static struct file_operations devfs_dir_fops; | 1846 | static const struct file_operations devfs_dir_fops; |
1847 | static struct inode_operations devfs_symlink_iops; | 1847 | static struct inode_operations devfs_symlink_iops; |
1848 | 1848 | ||
1849 | static int devfs_notify_change(struct dentry *dentry, struct iattr *iattr) | 1849 | static int devfs_notify_change(struct dentry *dentry, struct iattr *iattr) |
@@ -2061,11 +2061,11 @@ static int devfs_open(struct inode *inode, struct file *file) | |||
2061 | return err; | 2061 | return err; |
2062 | } /* End Function devfs_open */ | 2062 | } /* End Function devfs_open */ |
2063 | 2063 | ||
2064 | static struct file_operations devfs_fops = { | 2064 | static const struct file_operations devfs_fops = { |
2065 | .open = devfs_open, | 2065 | .open = devfs_open, |
2066 | }; | 2066 | }; |
2067 | 2067 | ||
2068 | static struct file_operations devfs_dir_fops = { | 2068 | static const struct file_operations devfs_dir_fops = { |
2069 | .read = generic_read_dir, | 2069 | .read = generic_read_dir, |
2070 | .readdir = devfs_readdir, | 2070 | .readdir = devfs_readdir, |
2071 | }; | 2071 | }; |