Skip to content

Commit

Permalink
KVM: constify function pointer tables
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Jan Engelhardt authored and avikivity committed Apr 27, 2008
1 parent d95058a commit 5c50274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5c50274

Please sign in to comment.