Skip to content

Commit 1f84039

Browse files
Yue Haibingsean-jc
authored andcommitted
KVM: Remove unused kvm_device_{get,put}() declarations
Commit 07f0a7b ("kvm: destroy emulated devices on VM exit") removed the functions but not these declarations. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20230814140339.47732-1-yuehaibing@huawei.com [sean: split to separate patch] Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 3e1efe2 commit 1f84039

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/kvm_host.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,8 +2152,6 @@ struct kvm_device_ops {
21522152
int (*mmap)(struct kvm_device *dev, struct vm_area_struct *vma);
21532153
};
21542154

2155-
void kvm_device_get(struct kvm_device *dev);
2156-
void kvm_device_put(struct kvm_device *dev);
21572155
struct kvm_device *kvm_device_from_filp(struct file *filp);
21582156
int kvm_register_device_ops(const struct kvm_device_ops *ops, u32 type);
21592157
void kvm_unregister_device_ops(u32 type);

0 commit comments

Comments
 (0)