aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/mqueue.c10
-rw-r--r--ipc/shm.c3
2 files changed, 5 insertions, 8 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 1511714a9585..02e6f6798972 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -205,11 +205,11 @@ static int mqueue_fill_super(struct super_block *sb, void *data, int silent)
205 return 0; 205 return 0;
206} 206}
207 207
208static struct super_block *mqueue_get_sb(struct file_system_type *fs_type, 208static int mqueue_get_sb(struct file_system_type *fs_type,
209 int flags, const char *dev_name, 209 int flags, const char *dev_name,
210 void *data) 210 void *data, struct vfsmount *mnt)
211{ 211{
212 return get_sb_single(fs_type, flags, data, mqueue_fill_super); 212 return get_sb_single(fs_type, flags, data, mqueue_fill_super, mnt);
213} 213}
214 214
215static void init_once(void *foo, kmem_cache_t * cachep, unsigned long flags) 215static void init_once(void *foo, kmem_cache_t * cachep, unsigned long flags)
@@ -359,7 +359,7 @@ static ssize_t mqueue_read_file(struct file *filp, char __user *u_data,
359 return count; 359 return count;
360} 360}
361 361
362static int mqueue_flush_file(struct file *filp) 362static int mqueue_flush_file(struct file *filp, fl_owner_t id)
363{ 363{
364 struct mqueue_inode_info *info = MQUEUE_I(filp->f_dentry->d_inode); 364 struct mqueue_inode_info *info = MQUEUE_I(filp->f_dentry->d_inode);
365 365
diff --git a/ipc/shm.c b/ipc/shm.c
index 4f133d24030f..fe7ae73b6981 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -698,7 +698,6 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
698 int err; 698 int err;
699 unsigned long flags; 699 unsigned long flags;
700 unsigned long prot; 700 unsigned long prot;
701 unsigned long o_flags;
702 int acc_mode; 701 int acc_mode;
703 void *user_addr; 702 void *user_addr;
704 703
@@ -725,11 +724,9 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
725 724
726 if (shmflg & SHM_RDONLY) { 725 if (shmflg & SHM_RDONLY) {
727 prot = PROT_READ; 726 prot = PROT_READ;
728 o_flags = O_RDONLY;
729 acc_mode = S_IRUGO; 727 acc_mode = S_IRUGO;
730 } else { 728 } else {
731 prot = PROT_READ | PROT_WRITE; 729 prot = PROT_READ | PROT_WRITE;
732 o_flags = O_RDWR;
733 acc_mode = S_IRUGO | S_IWUGO; 730 acc_mode = S_IRUGO | S_IWUGO;
734 } 731 }
735 if (shmflg & SHM_EXEC) { 732 if (shmflg & SHM_EXEC) {