diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-01-22 20:46:14 +0100 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-23 16:13:38 +0200 |
commit | 3abf467ddceca15ea9188068e711d284619e07e5 (patch) | |
tree | 0f2a59ed247fbb5a73174a54275ec61c3339ef3b /virt/kvm | |
parent | 3d12af8d03b98644df72c9ac59416d37ea000303 (diff) |
KVM: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 4295623ef764..048b0d2cc826 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -704,7 +704,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, @@ -1004,7 +1004,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, |