diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_fs.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_fs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 79a60f020a21..5b40a846ff95 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
@@ -47,7 +47,7 @@ | |||
47 | static struct super_block *ipath_super; | 47 | static struct super_block *ipath_super; |
48 | 48 | ||
49 | static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, | 49 | static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, |
50 | int mode, struct file_operations *fops, | 50 | int mode, const struct file_operations *fops, |
51 | void *data) | 51 | void *data) |
52 | { | 52 | { |
53 | int error; | 53 | int error; |
@@ -81,7 +81,7 @@ bail: | |||
81 | 81 | ||
82 | static int create_file(const char *name, mode_t mode, | 82 | static int create_file(const char *name, mode_t mode, |
83 | struct dentry *parent, struct dentry **dentry, | 83 | struct dentry *parent, struct dentry **dentry, |
84 | struct file_operations *fops, void *data) | 84 | const struct file_operations *fops, void *data) |
85 | { | 85 | { |
86 | int error; | 86 | int error; |
87 | 87 | ||
@@ -105,7 +105,7 @@ static ssize_t atomic_stats_read(struct file *file, char __user *buf, | |||
105 | sizeof ipath_stats); | 105 | sizeof ipath_stats); |
106 | } | 106 | } |
107 | 107 | ||
108 | static struct file_operations atomic_stats_ops = { | 108 | static const struct file_operations atomic_stats_ops = { |
109 | .read = atomic_stats_read, | 109 | .read = atomic_stats_read, |
110 | }; | 110 | }; |
111 | 111 | ||
@@ -127,7 +127,7 @@ static ssize_t atomic_counters_read(struct file *file, char __user *buf, | |||
127 | sizeof counters); | 127 | sizeof counters); |
128 | } | 128 | } |
129 | 129 | ||
130 | static struct file_operations atomic_counters_ops = { | 130 | static const struct file_operations atomic_counters_ops = { |
131 | .read = atomic_counters_read, | 131 | .read = atomic_counters_read, |
132 | }; | 132 | }; |
133 | 133 | ||
@@ -166,7 +166,7 @@ static ssize_t atomic_node_info_read(struct file *file, char __user *buf, | |||
166 | sizeof nodeinfo); | 166 | sizeof nodeinfo); |
167 | } | 167 | } |
168 | 168 | ||
169 | static struct file_operations atomic_node_info_ops = { | 169 | static const struct file_operations atomic_node_info_ops = { |
170 | .read = atomic_node_info_read, | 170 | .read = atomic_node_info_read, |
171 | }; | 171 | }; |
172 | 172 | ||
@@ -291,7 +291,7 @@ static ssize_t atomic_port_info_read(struct file *file, char __user *buf, | |||
291 | sizeof portinfo); | 291 | sizeof portinfo); |
292 | } | 292 | } |
293 | 293 | ||
294 | static struct file_operations atomic_port_info_ops = { | 294 | static const struct file_operations atomic_port_info_ops = { |
295 | .read = atomic_port_info_read, | 295 | .read = atomic_port_info_read, |
296 | }; | 296 | }; |
297 | 297 | ||
@@ -394,7 +394,7 @@ bail: | |||
394 | return ret; | 394 | return ret; |
395 | } | 395 | } |
396 | 396 | ||
397 | static struct file_operations flash_ops = { | 397 | static const struct file_operations flash_ops = { |
398 | .read = flash_read, | 398 | .read = flash_read, |
399 | .write = flash_write, | 399 | .write = flash_write, |
400 | }; | 400 | }; |