diff options
Diffstat (limited to 'virt')
| -rw-r--r-- | virt/kvm/kvm_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 034a798b0431..e79c54034bcd 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 | ||
| 1716 | static struct vm_operations_struct kvm_vcpu_vm_ops = { | 1716 | static 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 | ||
| 2320 | static struct vm_operations_struct kvm_vm_vm_ops = { | 2320 | static const struct vm_operations_struct kvm_vm_vm_ops = { |
| 2321 | .fault = kvm_vm_fault, | 2321 | .fault = kvm_vm_fault, |
| 2322 | }; | 2322 | }; |
| 2323 | 2323 | ||
| @@ -2625,7 +2625,7 @@ static int vcpu_stat_get(void *_offset, u64 *val) | |||
| 2625 | 2625 | ||
| 2626 | DEFINE_SIMPLE_ATTRIBUTE(vcpu_stat_fops, vcpu_stat_get, NULL, "%llu\n"); | 2626 | DEFINE_SIMPLE_ATTRIBUTE(vcpu_stat_fops, vcpu_stat_get, NULL, "%llu\n"); |
| 2627 | 2627 | ||
| 2628 | static struct file_operations *stat_fops[] = { | 2628 | static const struct file_operations *stat_fops[] = { |
| 2629 | [KVM_STAT_VCPU] = &vcpu_stat_fops, | 2629 | [KVM_STAT_VCPU] = &vcpu_stat_fops, |
| 2630 | [KVM_STAT_VM] = &vm_stat_fops, | 2630 | [KVM_STAT_VM] = &vm_stat_fops, |
| 2631 | }; | 2631 | }; |
