aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
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 b2e12893e3f4..04595fe77efb 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -705,7 +705,7 @@ static int kvm_vcpu_release(struct inode *inode, struct file *filp)
705 return 0; 705 return 0;
706} 706}
707 707
708static struct file_operations kvm_vcpu_fops = { 708static const struct file_operations kvm_vcpu_fops = {
709 .release = kvm_vcpu_release, 709 .release = kvm_vcpu_release,
710 .unlocked_ioctl = kvm_vcpu_ioctl, 710 .unlocked_ioctl = kvm_vcpu_ioctl,
711 .compat_ioctl = kvm_vcpu_ioctl, 711 .compat_ioctl = kvm_vcpu_ioctl,
@@ -1005,7 +1005,7 @@ static int kvm_vm_mmap(struct file *file, struct vm_area_struct *vma)
1005 return 0; 1005 return 0;
1006} 1006}
1007 1007
1008static struct file_operations kvm_vm_fops = { 1008static const struct file_operations kvm_vm_fops = {
1009 .release = kvm_vm_release, 1009 .release = kvm_vm_release,
1010 .unlocked_ioctl = kvm_vm_ioctl, 1010 .unlocked_ioctl = kvm_vm_ioctl,
1011 .compat_ioctl = kvm_vm_ioctl, 1011 .compat_ioctl = kvm_vm_ioctl,