diff options
-rw-r--r-- | arch/x86/entry/vsyscall/vsyscall_64.c | 2 | ||||
-rw-r--r-- | drivers/android/binder.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/vgem/vgem_drv.c | 2 | ||||
-rw-r--r-- | drivers/hsi/clients/cmt_speech.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_file_ops.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_mmap.c | 2 | ||||
-rw-r--r-- | drivers/media/platform/omap/omap_vout.c | 2 | ||||
-rw-r--r-- | drivers/misc/genwqe/card_dev.c | 2 | ||||
-rw-r--r-- | drivers/staging/android/ion/ion.c | 2 | ||||
-rw-r--r-- | drivers/staging/comedi/comedi_fops.c | 2 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/omapfb/omapfb-main.c | 2 | ||||
-rw-r--r-- | drivers/xen/gntalloc.c | 2 | ||||
-rw-r--r-- | drivers/xen/gntdev.c | 2 | ||||
-rw-r--r-- | drivers/xen/privcmd.c | 4 | ||||
-rw-r--r-- | fs/ceph/addr.c | 2 | ||||
-rw-r--r-- | fs/cifs/file.c | 2 | ||||
-rw-r--r-- | security/selinux/selinuxfs.c | 2 |
17 files changed, 18 insertions, 18 deletions
diff --git a/arch/x86/entry/vsyscall/vsyscall_64.c b/arch/x86/entry/vsyscall/vsyscall_64.c index 26a46f44e298..b160c0c6baed 100644 --- a/arch/x86/entry/vsyscall/vsyscall_64.c +++ b/arch/x86/entry/vsyscall/vsyscall_64.c | |||
@@ -277,7 +277,7 @@ static const char *gate_vma_name(struct vm_area_struct *vma) | |||
277 | { | 277 | { |
278 | return "[vsyscall]"; | 278 | return "[vsyscall]"; |
279 | } | 279 | } |
280 | static struct vm_operations_struct gate_vma_ops = { | 280 | static const struct vm_operations_struct gate_vma_ops = { |
281 | .name = gate_vma_name, | 281 | .name = gate_vma_name, |
282 | }; | 282 | }; |
283 | static struct vm_area_struct gate_vma = { | 283 | static struct vm_area_struct gate_vma = { |
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 6607f3c6ace1..a39e85f9efa9 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c | |||
@@ -2834,7 +2834,7 @@ static int binder_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
2834 | return VM_FAULT_SIGBUS; | 2834 | return VM_FAULT_SIGBUS; |
2835 | } | 2835 | } |
2836 | 2836 | ||
2837 | static struct vm_operations_struct binder_vm_ops = { | 2837 | static const struct vm_operations_struct binder_vm_ops = { |
2838 | .open = binder_vma_open, | 2838 | .open = binder_vma_open, |
2839 | .close = binder_vma_close, | 2839 | .close = binder_vma_close, |
2840 | .fault = binder_vm_fault, | 2840 | .fault = binder_vm_fault, |
diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index 6394547cf67a..860062ef8814 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c | |||
@@ -125,7 +125,7 @@ static int vgem_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
125 | } | 125 | } |
126 | } | 126 | } |
127 | 127 | ||
128 | static struct vm_operations_struct vgem_gem_vm_ops = { | 128 | static const struct vm_operations_struct vgem_gem_vm_ops = { |
129 | .fault = vgem_gem_fault, | 129 | .fault = vgem_gem_fault, |
130 | .open = drm_gem_vm_open, | 130 | .open = drm_gem_vm_open, |
131 | .close = drm_gem_vm_close, | 131 | .close = drm_gem_vm_close, |
diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c index d04643f9548b..95638df73d1c 100644 --- a/drivers/hsi/clients/cmt_speech.c +++ b/drivers/hsi/clients/cmt_speech.c | |||
@@ -1110,7 +1110,7 @@ static int cs_char_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
1110 | return 0; | 1110 | return 0; |
1111 | } | 1111 | } |
1112 | 1112 | ||
1113 | static struct vm_operations_struct cs_char_vm_ops = { | 1113 | static const struct vm_operations_struct cs_char_vm_ops = { |
1114 | .fault = cs_char_vma_fault, | 1114 | .fault = cs_char_vma_fault, |
1115 | }; | 1115 | }; |
1116 | 1116 | ||
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c index 725881890c4a..e449e394963f 100644 --- a/drivers/infiniband/hw/qib/qib_file_ops.c +++ b/drivers/infiniband/hw/qib/qib_file_ops.c | |||
@@ -908,7 +908,7 @@ static int qib_file_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
908 | return 0; | 908 | return 0; |
909 | } | 909 | } |
910 | 910 | ||
911 | static struct vm_operations_struct qib_file_vm_ops = { | 911 | static const struct vm_operations_struct qib_file_vm_ops = { |
912 | .fault = qib_file_vma_fault, | 912 | .fault = qib_file_vma_fault, |
913 | }; | 913 | }; |
914 | 914 | ||
diff --git a/drivers/infiniband/hw/qib/qib_mmap.c b/drivers/infiniband/hw/qib/qib_mmap.c index 146cf29a2e1d..34927b700b0e 100644 --- a/drivers/infiniband/hw/qib/qib_mmap.c +++ b/drivers/infiniband/hw/qib/qib_mmap.c | |||
@@ -75,7 +75,7 @@ static void qib_vma_close(struct vm_area_struct *vma) | |||
75 | kref_put(&ip->ref, qib_release_mmap_info); | 75 | kref_put(&ip->ref, qib_release_mmap_info); |
76 | } | 76 | } |
77 | 77 | ||
78 | static struct vm_operations_struct qib_vm_ops = { | 78 | static const struct vm_operations_struct qib_vm_ops = { |
79 | .open = qib_vma_open, | 79 | .open = qib_vma_open, |
80 | .close = qib_vma_close, | 80 | .close = qib_vma_close, |
81 | }; | 81 | }; |
diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index f09c5f17a42f..de2474e1132d 100644 --- a/drivers/media/platform/omap/omap_vout.c +++ b/drivers/media/platform/omap/omap_vout.c | |||
@@ -872,7 +872,7 @@ static void omap_vout_vm_close(struct vm_area_struct *vma) | |||
872 | vout->mmap_count--; | 872 | vout->mmap_count--; |
873 | } | 873 | } |
874 | 874 | ||
875 | static struct vm_operations_struct omap_vout_vm_ops = { | 875 | static const struct vm_operations_struct omap_vout_vm_ops = { |
876 | .open = omap_vout_vm_open, | 876 | .open = omap_vout_vm_open, |
877 | .close = omap_vout_vm_close, | 877 | .close = omap_vout_vm_close, |
878 | }; | 878 | }; |
diff --git a/drivers/misc/genwqe/card_dev.c b/drivers/misc/genwqe/card_dev.c index c49d244265ec..70e62d6a3231 100644 --- a/drivers/misc/genwqe/card_dev.c +++ b/drivers/misc/genwqe/card_dev.c | |||
@@ -418,7 +418,7 @@ static void genwqe_vma_close(struct vm_area_struct *vma) | |||
418 | kfree(dma_map); | 418 | kfree(dma_map); |
419 | } | 419 | } |
420 | 420 | ||
421 | static struct vm_operations_struct genwqe_vma_ops = { | 421 | static const struct vm_operations_struct genwqe_vma_ops = { |
422 | .open = genwqe_vma_open, | 422 | .open = genwqe_vma_open, |
423 | .close = genwqe_vma_close, | 423 | .close = genwqe_vma_close, |
424 | }; | 424 | }; |
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index eec878e183f5..217aa537c4eb 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c | |||
@@ -997,7 +997,7 @@ static void ion_vm_close(struct vm_area_struct *vma) | |||
997 | mutex_unlock(&buffer->lock); | 997 | mutex_unlock(&buffer->lock); |
998 | } | 998 | } |
999 | 999 | ||
1000 | static struct vm_operations_struct ion_vma_ops = { | 1000 | static const struct vm_operations_struct ion_vma_ops = { |
1001 | .open = ion_vm_open, | 1001 | .open = ion_vm_open, |
1002 | .close = ion_vm_close, | 1002 | .close = ion_vm_close, |
1003 | .fault = ion_vm_fault, | 1003 | .fault = ion_vm_fault, |
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index fd54d098ab02..0e8a45102933 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c | |||
@@ -2156,7 +2156,7 @@ static void comedi_vm_close(struct vm_area_struct *area) | |||
2156 | comedi_buf_map_put(bm); | 2156 | comedi_buf_map_put(bm); |
2157 | } | 2157 | } |
2158 | 2158 | ||
2159 | static struct vm_operations_struct comedi_vm_ops = { | 2159 | static const struct vm_operations_struct comedi_vm_ops = { |
2160 | .open = comedi_vm_open, | 2160 | .open = comedi_vm_open, |
2161 | .close = comedi_vm_close, | 2161 | .close = comedi_vm_close, |
2162 | }; | 2162 | }; |
diff --git a/drivers/video/fbdev/omap2/omapfb/omapfb-main.c b/drivers/video/fbdev/omap2/omapfb/omapfb-main.c index 4f0cbb54d4db..d3af01c94a58 100644 --- a/drivers/video/fbdev/omap2/omapfb/omapfb-main.c +++ b/drivers/video/fbdev/omap2/omapfb/omapfb-main.c | |||
@@ -1091,7 +1091,7 @@ static void mmap_user_close(struct vm_area_struct *vma) | |||
1091 | omapfb_put_mem_region(rg); | 1091 | omapfb_put_mem_region(rg); |
1092 | } | 1092 | } |
1093 | 1093 | ||
1094 | static struct vm_operations_struct mmap_user_ops = { | 1094 | static const struct vm_operations_struct mmap_user_ops = { |
1095 | .open = mmap_user_open, | 1095 | .open = mmap_user_open, |
1096 | .close = mmap_user_close, | 1096 | .close = mmap_user_close, |
1097 | }; | 1097 | }; |
diff --git a/drivers/xen/gntalloc.c b/drivers/xen/gntalloc.c index e53fe191738c..696301d9dc91 100644 --- a/drivers/xen/gntalloc.c +++ b/drivers/xen/gntalloc.c | |||
@@ -493,7 +493,7 @@ static void gntalloc_vma_close(struct vm_area_struct *vma) | |||
493 | mutex_unlock(&gref_mutex); | 493 | mutex_unlock(&gref_mutex); |
494 | } | 494 | } |
495 | 495 | ||
496 | static struct vm_operations_struct gntalloc_vmops = { | 496 | static const struct vm_operations_struct gntalloc_vmops = { |
497 | .open = gntalloc_vma_open, | 497 | .open = gntalloc_vma_open, |
498 | .close = gntalloc_vma_close, | 498 | .close = gntalloc_vma_close, |
499 | }; | 499 | }; |
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index 0dbb222daaf1..2ea0b3b2a91d 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c | |||
@@ -433,7 +433,7 @@ static struct page *gntdev_vma_find_special_page(struct vm_area_struct *vma, | |||
433 | return map->pages[(addr - map->pages_vm_start) >> PAGE_SHIFT]; | 433 | return map->pages[(addr - map->pages_vm_start) >> PAGE_SHIFT]; |
434 | } | 434 | } |
435 | 435 | ||
436 | static struct vm_operations_struct gntdev_vmops = { | 436 | static const struct vm_operations_struct gntdev_vmops = { |
437 | .open = gntdev_vma_open, | 437 | .open = gntdev_vma_open, |
438 | .close = gntdev_vma_close, | 438 | .close = gntdev_vma_close, |
439 | .find_special_page = gntdev_vma_find_special_page, | 439 | .find_special_page = gntdev_vma_find_special_page, |
diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 5a296161d843..56cb13fcbd0e 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c | |||
@@ -414,7 +414,7 @@ static int alloc_empty_pages(struct vm_area_struct *vma, int numpgs) | |||
414 | return 0; | 414 | return 0; |
415 | } | 415 | } |
416 | 416 | ||
417 | static struct vm_operations_struct privcmd_vm_ops; | 417 | static const struct vm_operations_struct privcmd_vm_ops; |
418 | 418 | ||
419 | static long privcmd_ioctl_mmap_batch(void __user *udata, int version) | 419 | static long privcmd_ioctl_mmap_batch(void __user *udata, int version) |
420 | { | 420 | { |
@@ -605,7 +605,7 @@ static int privcmd_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
605 | return VM_FAULT_SIGBUS; | 605 | return VM_FAULT_SIGBUS; |
606 | } | 606 | } |
607 | 607 | ||
608 | static struct vm_operations_struct privcmd_vm_ops = { | 608 | static const struct vm_operations_struct privcmd_vm_ops = { |
609 | .close = privcmd_close, | 609 | .close = privcmd_close, |
610 | .fault = privcmd_fault | 610 | .fault = privcmd_fault |
611 | }; | 611 | }; |
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 890c50971a69..a268abfe60ac 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -1593,7 +1593,7 @@ out: | |||
1593 | return err; | 1593 | return err; |
1594 | } | 1594 | } |
1595 | 1595 | ||
1596 | static struct vm_operations_struct ceph_vmops = { | 1596 | static const struct vm_operations_struct ceph_vmops = { |
1597 | .fault = ceph_filemap_fault, | 1597 | .fault = ceph_filemap_fault, |
1598 | .page_mkwrite = ceph_page_mkwrite, | 1598 | .page_mkwrite = ceph_page_mkwrite, |
1599 | }; | 1599 | }; |
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 3f50cee79df9..e2a6af1508af 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -3216,7 +3216,7 @@ cifs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
3216 | return VM_FAULT_LOCKED; | 3216 | return VM_FAULT_LOCKED; |
3217 | } | 3217 | } |
3218 | 3218 | ||
3219 | static struct vm_operations_struct cifs_file_vm_ops = { | 3219 | static const struct vm_operations_struct cifs_file_vm_ops = { |
3220 | .fault = filemap_fault, | 3220 | .fault = filemap_fault, |
3221 | .map_pages = filemap_map_pages, | 3221 | .map_pages = filemap_map_pages, |
3222 | .page_mkwrite = cifs_page_mkwrite, | 3222 | .page_mkwrite = cifs_page_mkwrite, |
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 3d2201413028..5bed7716f8ab 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c | |||
@@ -472,7 +472,7 @@ static int sel_mmap_policy_fault(struct vm_area_struct *vma, | |||
472 | return 0; | 472 | return 0; |
473 | } | 473 | } |
474 | 474 | ||
475 | static struct vm_operations_struct sel_mmap_policy_ops = { | 475 | static const struct vm_operations_struct sel_mmap_policy_ops = { |
476 | .fault = sel_mmap_policy_fault, | 476 | .fault = sel_mmap_policy_fault, |
477 | .page_mkwrite = sel_mmap_policy_fault, | 477 | .page_mkwrite = sel_mmap_policy_fault, |
478 | }; | 478 | }; |