diff options
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |