mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
KVM: Remove unused file_is_kvm
Remove the now unused file_is_kvm function. Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Acked-by: Janosch Frank <frankja@linux.ibm.com> Acked-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
This commit is contained in:
parent
00aa2c8a02
commit
c22295d0d7
|
|
@ -1087,7 +1087,6 @@ void kvm_exit(void);
|
|||
void kvm_get_kvm(struct kvm *kvm);
|
||||
bool kvm_get_kvm_safe(struct kvm *kvm);
|
||||
void kvm_put_kvm(struct kvm *kvm);
|
||||
bool file_is_kvm(struct file *file);
|
||||
|
||||
/*
|
||||
* Architectures define kvm_file_to_kvm_arch to <arch>
|
||||
|
|
|
|||
|
|
@ -5492,12 +5492,6 @@ static struct file_operations kvm_vm_fops = {
|
|||
KVM_COMPAT(kvm_vm_compat_ioctl),
|
||||
};
|
||||
|
||||
bool file_is_kvm(struct file *file)
|
||||
{
|
||||
return file && file->f_op == &kvm_vm_fops;
|
||||
}
|
||||
EXPORT_SYMBOL_FOR_KVM_INTERNAL(file_is_kvm);
|
||||
|
||||
#ifdef kvm_file_to_kvm_arch
|
||||
struct kvm *kvm_file_to_kvm_fn(struct file *file)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user