diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mqueue.c | 4 | ||||
-rw-r--r-- | ipc/shm.c | 2 | ||||
-rw-r--r-- | ipc/util.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index c5e68adc6732..ee9d69707c0a 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -77,7 +77,7 @@ struct mqueue_inode_info { | |||
77 | 77 | ||
78 | static const struct inode_operations mqueue_dir_inode_operations; | 78 | static const struct inode_operations mqueue_dir_inode_operations; |
79 | static const struct file_operations mqueue_file_operations; | 79 | static const struct file_operations mqueue_file_operations; |
80 | static struct super_operations mqueue_super_ops; | 80 | static const struct super_operations mqueue_super_ops; |
81 | static void remove_notification(struct mqueue_inode_info *info); | 81 | static void remove_notification(struct mqueue_inode_info *info); |
82 | 82 | ||
83 | static struct kmem_cache *mqueue_inode_cachep; | 83 | static struct kmem_cache *mqueue_inode_cachep; |
@@ -1224,7 +1224,7 @@ static const struct file_operations mqueue_file_operations = { | |||
1224 | .read = mqueue_read_file, | 1224 | .read = mqueue_read_file, |
1225 | }; | 1225 | }; |
1226 | 1226 | ||
1227 | static struct super_operations mqueue_super_ops = { | 1227 | static const struct super_operations mqueue_super_ops = { |
1228 | .alloc_inode = mqueue_alloc_inode, | 1228 | .alloc_inode = mqueue_alloc_inode, |
1229 | .destroy_inode = mqueue_destroy_inode, | 1229 | .destroy_inode = mqueue_destroy_inode, |
1230 | .statfs = simple_statfs, | 1230 | .statfs = simple_statfs, |
@@ -370,7 +370,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) | |||
370 | if (shmflg & SHM_NORESERVE) | 370 | if (shmflg & SHM_NORESERVE) |
371 | acctflag = VM_NORESERVE; | 371 | acctflag = VM_NORESERVE; |
372 | file = hugetlb_file_setup(name, size, acctflag, | 372 | file = hugetlb_file_setup(name, size, acctflag, |
373 | &shp->mlock_user); | 373 | &shp->mlock_user, HUGETLB_SHMFS_INODE); |
374 | } else { | 374 | } else { |
375 | /* | 375 | /* |
376 | * Do not allow no accounting for OVERCOMMIT_NEVER, even | 376 | * Do not allow no accounting for OVERCOMMIT_NEVER, even |
diff --git a/ipc/util.c b/ipc/util.c index b8e4ba92f6d1..79ce84e890f7 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -942,7 +942,7 @@ static int sysvipc_proc_show(struct seq_file *s, void *it) | |||
942 | return iface->show(s, it); | 942 | return iface->show(s, it); |
943 | } | 943 | } |
944 | 944 | ||
945 | static struct seq_operations sysvipc_proc_seqops = { | 945 | static const struct seq_operations sysvipc_proc_seqops = { |
946 | .start = sysvipc_proc_start, | 946 | .start = sysvipc_proc_start, |
947 | .stop = sysvipc_proc_stop, | 947 | .stop = sysvipc_proc_stop, |
948 | .next = sysvipc_proc_next, | 948 | .next = sysvipc_proc_next, |