summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2008-01-22 20:46:14 +0100
committerAvi Kivity <avi@qumranet.com>2008-04-27 11:53:15 +0300
commit5c5027425ec23ded452879ee5d0775a9a90fb9bf (patch)
tree7284914cb8d2a4a6e87b81b677d827c0735c7b10
parentd95058a1a7170ae2af2939cbdab0ff5d5e005238 (diff)
downloadlinux-3.10-5c5027425ec23ded452879ee5d0775a9a90fb9bf.tar.gz
linux-3.10-5c5027425ec23ded452879ee5d0775a9a90fb9bf.tar.bz2
linux-3.10-5c5027425ec23ded452879ee5d0775a9a90fb9bf.zip
KVM: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Avi Kivity <avi@qumranet.com>
-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 b2e12893e3f..04595fe77ef 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)
return 0;
}
-static struct file_operations kvm_vcpu_fops = {
+static const struct file_operations kvm_vcpu_fops = {
.release = kvm_vcpu_release,
.unlocked_ioctl = kvm_vcpu_ioctl,
.compat_ioctl = kvm_vcpu_ioctl,
@@ -1005,7 +1005,7 @@ static int kvm_vm_mmap(struct file *file, struct vm_area_struct *vma)
return 0;
}
-static struct file_operations kvm_vm_fops = {
+static const struct file_operations kvm_vm_fops = {
.release = kvm_vm_release,
.unlocked_ioctl = kvm_vm_ioctl,
.compat_ioctl = kvm_vm_ioctl,