diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-09-27 14:29:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-27 14:39:25 -0400 |
commit | f0f37e2f77731b3473fa6bd5ee53255d9a9cdb40 (patch) | |
tree | 3c26d3ed1a453156e9c208ccb5567a8954dba064 /arch/powerpc | |
parent | 6f5071020d5ec89b5d095aa488db604adb921aec (diff) |
const: mark struct vm_struct_operations
* mark struct vm_area_struct::vm_ops as const
* mark vm_ops in AGP code
But leave TTM code alone, something is fishy there with global vm_ops
being used.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 14 |
1 files changed, 7 insertions, 7 deletions
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 | ||
312 | static struct vm_operations_struct spufs_mem_mmap_vmops = { | 312 | static 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 | ||
439 | static struct vm_operations_struct spufs_cntl_mmap_vmops = { | 439 | static 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 | ||
1146 | static struct vm_operations_struct spufs_signal1_mmap_vmops = { | 1146 | static 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 | ||
1282 | static struct vm_operations_struct spufs_signal2_mmap_vmops = { | 1282 | static 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 | ||
1400 | static struct vm_operations_struct spufs_mss_mmap_vmops = { | 1400 | static 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 | ||
1461 | static struct vm_operations_struct spufs_psmap_mmap_vmops = { | 1461 | static 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 | ||
1520 | static struct vm_operations_struct spufs_mfc_mmap_vmops = { | 1520 | static 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 | ||