diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mqueue.c | 4 | ||||
-rw-r--r-- | ipc/shm.c | 4 | ||||
-rw-r--r-- | ipc/util.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 02717f71d8d0..fafdef357e92 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -85,7 +85,7 @@ struct mqueue_inode_info { | |||
85 | }; | 85 | }; |
86 | 86 | ||
87 | static struct inode_operations mqueue_dir_inode_operations; | 87 | static struct inode_operations mqueue_dir_inode_operations; |
88 | static struct file_operations mqueue_file_operations; | 88 | static const struct file_operations mqueue_file_operations; |
89 | static struct super_operations mqueue_super_ops; | 89 | static struct super_operations mqueue_super_ops; |
90 | static void remove_notification(struct mqueue_inode_info *info); | 90 | static void remove_notification(struct mqueue_inode_info *info); |
91 | 91 | ||
@@ -1166,7 +1166,7 @@ static struct inode_operations mqueue_dir_inode_operations = { | |||
1166 | .unlink = mqueue_unlink, | 1166 | .unlink = mqueue_unlink, |
1167 | }; | 1167 | }; |
1168 | 1168 | ||
1169 | static struct file_operations mqueue_file_operations = { | 1169 | static const struct file_operations mqueue_file_operations = { |
1170 | .flush = mqueue_flush_file, | 1170 | .flush = mqueue_flush_file, |
1171 | .poll = mqueue_poll_file, | 1171 | .poll = mqueue_poll_file, |
1172 | .read = mqueue_read_file, | 1172 | .read = mqueue_read_file, |
@@ -42,7 +42,7 @@ | |||
42 | 42 | ||
43 | #include "util.h" | 43 | #include "util.h" |
44 | 44 | ||
45 | static struct file_operations shm_file_operations; | 45 | static const struct file_operations shm_file_operations; |
46 | static struct vm_operations_struct shm_vm_ops; | 46 | static struct vm_operations_struct shm_vm_ops; |
47 | 47 | ||
48 | static struct ipc_ids init_shm_ids; | 48 | static struct ipc_ids init_shm_ids; |
@@ -249,7 +249,7 @@ static int shm_release(struct inode *ino, struct file *file) | |||
249 | return 0; | 249 | return 0; |
250 | } | 250 | } |
251 | 251 | ||
252 | static struct file_operations shm_file_operations = { | 252 | static const struct file_operations shm_file_operations = { |
253 | .mmap = shm_mmap, | 253 | .mmap = shm_mmap, |
254 | .release = shm_release, | 254 | .release = shm_release, |
255 | #ifndef CONFIG_MMU | 255 | #ifndef CONFIG_MMU |
diff --git a/ipc/util.c b/ipc/util.c index 115e9aac1366..08a647965b9e 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -205,7 +205,7 @@ void __ipc_init ipc_init_ids(struct ipc_ids* ids, int size) | |||
205 | } | 205 | } |
206 | 206 | ||
207 | #ifdef CONFIG_PROC_FS | 207 | #ifdef CONFIG_PROC_FS |
208 | static struct file_operations sysvipc_proc_fops; | 208 | static const struct file_operations sysvipc_proc_fops; |
209 | /** | 209 | /** |
210 | * ipc_init_proc_interface - Create a proc interface for sysipc types using a seq_file interface. | 210 | * ipc_init_proc_interface - Create a proc interface for sysipc types using a seq_file interface. |
211 | * @path: Path in procfs | 211 | * @path: Path in procfs |
@@ -879,7 +879,7 @@ static int sysvipc_proc_release(struct inode *inode, struct file *file) | |||
879 | return seq_release_private(inode, file); | 879 | return seq_release_private(inode, file); |
880 | } | 880 | } |
881 | 881 | ||
882 | static struct file_operations sysvipc_proc_fops = { | 882 | static const struct file_operations sysvipc_proc_fops = { |
883 | .open = sysvipc_proc_open, | 883 | .open = sysvipc_proc_open, |
884 | .read = seq_read, | 884 | .read = seq_read, |
885 | .llseek = seq_lseek, | 885 | .llseek = seq_lseek, |