Messages in this thread Patch in this message | | | From | re.emese@gmail ... | Subject | [PATCH 4/9] Constify struct file_operations for 2.6.32-git-053fe57ac v2 | Date | Mon, 14 Dec 2009 00:59:32 +0100 |
| |
From: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Emese Revfy <re.emese@gmail.com> --- virt/kvm/kvm_main.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index f92ba13..f7a2269 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1164,6 +1164,7 @@ static int kvm_vcpu_release(struct inode *inode, struct file *filp) return 0; } +/* cannot be const, see kvm_init */ static struct file_operations kvm_vcpu_fops = { .release = kvm_vcpu_release, .unlocked_ioctl = kvm_vcpu_ioctl, @@ -1620,6 +1621,7 @@ static int kvm_vm_mmap(struct file *file, struct vm_area_struct *vma) return 0; } +/* cannot be const, see kvm_init */ static struct file_operations kvm_vm_fops = { .release = kvm_vm_release, .unlocked_ioctl = kvm_vm_ioctl, @@ -1710,6 +1712,7 @@ out: return r; } +/* cannot be const, see kvm_init */ static struct file_operations kvm_chardev_ops = { .unlocked_ioctl = kvm_dev_ioctl, .compat_ioctl = kvm_dev_ioctl, -- 1.6.5.3
| |