aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/ia64/ia32/binfmt_elf32.c4
-rw-r--r--arch/powerpc/platforms/cell/spufs/file.c14
-rw-r--r--arch/x86/pci/i386.c2
3 files changed, 10 insertions, 10 deletions
diff --git a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c
index f92bdaac8976..c69552bf893e 100644
--- a/arch/ia64/ia32/binfmt_elf32.c
+++ b/arch/ia64/ia32/binfmt_elf32.c
@@ -69,11 +69,11 @@ ia32_install_gate_page (struct vm_area_struct *vma, struct vm_fault *vmf)
69} 69}
70 70
71 71
72static struct vm_operations_struct ia32_shared_page_vm_ops = { 72static const struct vm_operations_struct ia32_shared_page_vm_ops = {
73 .fault = ia32_install_shared_page 73 .fault = ia32_install_shared_page
74}; 74};
75 75
76static struct vm_operations_struct ia32_gate_page_vm_ops = { 76static const struct vm_operations_struct ia32_gate_page_vm_ops = {
77 .fault = ia32_install_gate_page 77 .fault = ia32_install_gate_page
78}; 78};
79 79
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index 8f079b865ad0..961309446170 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -309,7 +309,7 @@ static int spufs_mem_mmap_access(struct vm_area_struct *vma,
309 return len; 309 return len;
310} 310}
311 311
312static struct vm_operations_struct spufs_mem_mmap_vmops = { 312static const struct vm_operations_struct spufs_mem_mmap_vmops = {
313 .fault = spufs_mem_mmap_fault, 313 .fault = spufs_mem_mmap_fault,
314 .access = spufs_mem_mmap_access, 314 .access = spufs_mem_mmap_access,
315}; 315};
@@ -436,7 +436,7 @@ static int spufs_cntl_mmap_fault(struct vm_area_struct *vma,
436 return spufs_ps_fault(vma, vmf, 0x4000, SPUFS_CNTL_MAP_SIZE); 436 return spufs_ps_fault(vma, vmf, 0x4000, SPUFS_CNTL_MAP_SIZE);
437} 437}
438 438
439static struct vm_operations_struct spufs_cntl_mmap_vmops = { 439static const struct vm_operations_struct spufs_cntl_mmap_vmops = {
440 .fault = spufs_cntl_mmap_fault, 440 .fault = spufs_cntl_mmap_fault,
441}; 441};
442 442
@@ -1143,7 +1143,7 @@ spufs_signal1_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
1143#endif 1143#endif
1144} 1144}
1145 1145
1146static struct vm_operations_struct spufs_signal1_mmap_vmops = { 1146static const struct vm_operations_struct spufs_signal1_mmap_vmops = {
1147 .fault = spufs_signal1_mmap_fault, 1147 .fault = spufs_signal1_mmap_fault,
1148}; 1148};
1149 1149
@@ -1279,7 +1279,7 @@ spufs_signal2_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
1279#endif 1279#endif
1280} 1280}
1281 1281
1282static struct vm_operations_struct spufs_signal2_mmap_vmops = { 1282static const struct vm_operations_struct spufs_signal2_mmap_vmops = {
1283 .fault = spufs_signal2_mmap_fault, 1283 .fault = spufs_signal2_mmap_fault,
1284}; 1284};
1285 1285
@@ -1397,7 +1397,7 @@ spufs_mss_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
1397 return spufs_ps_fault(vma, vmf, 0x0000, SPUFS_MSS_MAP_SIZE); 1397 return spufs_ps_fault(vma, vmf, 0x0000, SPUFS_MSS_MAP_SIZE);
1398} 1398}
1399 1399
1400static struct vm_operations_struct spufs_mss_mmap_vmops = { 1400static const struct vm_operations_struct spufs_mss_mmap_vmops = {
1401 .fault = spufs_mss_mmap_fault, 1401 .fault = spufs_mss_mmap_fault,
1402}; 1402};
1403 1403
@@ -1458,7 +1458,7 @@ spufs_psmap_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
1458 return spufs_ps_fault(vma, vmf, 0x0000, SPUFS_PS_MAP_SIZE); 1458 return spufs_ps_fault(vma, vmf, 0x0000, SPUFS_PS_MAP_SIZE);
1459} 1459}
1460 1460
1461static struct vm_operations_struct spufs_psmap_mmap_vmops = { 1461static const struct vm_operations_struct spufs_psmap_mmap_vmops = {
1462 .fault = spufs_psmap_mmap_fault, 1462 .fault = spufs_psmap_mmap_fault,
1463}; 1463};
1464 1464
@@ -1517,7 +1517,7 @@ spufs_mfc_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
1517 return spufs_ps_fault(vma, vmf, 0x3000, SPUFS_MFC_MAP_SIZE); 1517 return spufs_ps_fault(vma, vmf, 0x3000, SPUFS_MFC_MAP_SIZE);
1518} 1518}
1519 1519
1520static struct vm_operations_struct spufs_mfc_mmap_vmops = { 1520static const struct vm_operations_struct spufs_mfc_mmap_vmops = {
1521 .fault = spufs_mfc_mmap_fault, 1521 .fault = spufs_mfc_mmap_fault,
1522}; 1522};
1523 1523
diff --git a/arch/x86/pci/i386.c b/arch/x86/pci/i386.c
index 52e62e57fedd..b22d13b0c71d 100644
--- a/arch/x86/pci/i386.c
+++ b/arch/x86/pci/i386.c
@@ -266,7 +266,7 @@ void pcibios_set_master(struct pci_dev *dev)
266 pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat); 266 pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat);
267} 267}
268 268
269static struct vm_operations_struct pci_mmap_ops = { 269static const struct vm_operations_struct pci_mmap_ops = {
270 .access = generic_access_phys, 270 .access = generic_access_phys,
271}; 271};
272 272