aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/shm.c')
-rw-r--r--ipc/shm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index f8e10a25ad7d..5bb617f6306e 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -42,7 +42,7 @@
42 42
43#include "util.h" 43#include "util.h"
44 44
45static struct file_operations shm_file_operations; 45static const struct file_operations shm_file_operations;
46static struct vm_operations_struct shm_vm_ops; 46static struct vm_operations_struct shm_vm_ops;
47 47
48static struct ipc_ids init_shm_ids; 48static 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
252static struct file_operations shm_file_operations = { 252static 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