mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
KVM: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
d95058a1a7
commit
5c5027425e
@ -705,7 +705,7 @@ static int kvm_vcpu_release(struct inode *inode, struct file *filp)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct file_operations kvm_vcpu_fops = {
|
static const struct file_operations kvm_vcpu_fops = {
|
||||||
.release = kvm_vcpu_release,
|
.release = kvm_vcpu_release,
|
||||||
.unlocked_ioctl = kvm_vcpu_ioctl,
|
.unlocked_ioctl = kvm_vcpu_ioctl,
|
||||||
.compat_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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct file_operations kvm_vm_fops = {
|
static const struct file_operations kvm_vm_fops = {
|
||||||
.release = kvm_vm_release,
|
.release = kvm_vm_release,
|
||||||
.unlocked_ioctl = kvm_vm_ioctl,
|
.unlocked_ioctl = kvm_vm_ioctl,
|
||||||
.compat_ioctl = kvm_vm_ioctl,
|
.compat_ioctl = kvm_vm_ioctl,
|
||||||
|
Loading…
Reference in New Issue
Block a user