aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index fd9cc79092cb..484c903544f4 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1498,7 +1498,7 @@ static int kvm_vcpu_release(struct inode *inode, struct file *filp)
1498 return 0; 1498 return 0;
1499} 1499}
1500 1500
1501static const struct file_operations kvm_vcpu_fops = { 1501static struct file_operations kvm_vcpu_fops = {
1502 .release = kvm_vcpu_release, 1502 .release = kvm_vcpu_release,
1503 .unlocked_ioctl = kvm_vcpu_ioctl, 1503 .unlocked_ioctl = kvm_vcpu_ioctl,
1504 .compat_ioctl = kvm_vcpu_ioctl, 1504 .compat_ioctl = kvm_vcpu_ioctl,
@@ -1892,7 +1892,7 @@ static int kvm_vm_mmap(struct file *file, struct vm_area_struct *vma)
1892 return 0; 1892 return 0;
1893} 1893}
1894 1894
1895static const struct file_operations kvm_vm_fops = { 1895static struct file_operations kvm_vm_fops = {
1896 .release = kvm_vm_release, 1896 .release = kvm_vm_release,
1897 .unlocked_ioctl = kvm_vm_ioctl, 1897 .unlocked_ioctl = kvm_vm_ioctl,
1898 .compat_ioctl = kvm_vm_ioctl, 1898 .compat_ioctl = kvm_vm_ioctl,
@@ -2256,6 +2256,8 @@ int kvm_init(void *opaque, unsigned int vcpu_size,
2256 } 2256 }
2257 2257
2258 kvm_chardev_ops.owner = module; 2258 kvm_chardev_ops.owner = module;
2259 kvm_vm_fops.owner = module;
2260 kvm_vcpu_fops.owner = module;
2259 2261
2260 r = misc_register(&kvm_dev); 2262 r = misc_register(&kvm_dev);
2261 if (r) { 2263 if (r) {