aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2009-09-27 14:29:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-27 14:39:25 -0400
commitf0f37e2f77731b3473fa6bd5ee53255d9a9cdb40 (patch)
tree3c26d3ed1a453156e9c208ccb5567a8954dba064 /virt
parent6f5071020d5ec89b5d095aa488db604adb921aec (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 'virt')
-rw-r--r--virt/kvm/kvm_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 034a798b0431..b5e7e3f1183f 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1713,7 +1713,7 @@ static int kvm_vcpu_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
1713 return 0; 1713 return 0;
1714} 1714}
1715 1715
1716static struct vm_operations_struct kvm_vcpu_vm_ops = { 1716static const struct vm_operations_struct kvm_vcpu_vm_ops = {
1717 .fault = kvm_vcpu_fault, 1717 .fault = kvm_vcpu_fault,
1718}; 1718};
1719 1719
@@ -2317,7 +2317,7 @@ static int kvm_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
2317 return 0; 2317 return 0;
2318} 2318}
2319 2319
2320static struct vm_operations_struct kvm_vm_vm_ops = { 2320static const struct vm_operations_struct kvm_vm_vm_ops = {
2321 .fault = kvm_vm_fault, 2321 .fault = kvm_vm_fault,
2322}; 2322};
2323 2323