KVM: Drop unused kvm_dirty_gfn_invalid()
authorPeter Xu <peterx@redhat.com>
Wed, 1 Sep 2021 23:09:04 +0000 (19:09 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Sep 2021 12:23:46 +0000 (08:23 -0400)
Drop the unused function as reported by test bot.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210901230904.15164-1-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/dirty_ring.c

index 7aafefc..88f4683 100644 (file)
@@ -91,11 +91,6 @@ static inline void kvm_dirty_gfn_set_dirtied(struct kvm_dirty_gfn *gfn)
        gfn->flags = KVM_DIRTY_GFN_F_DIRTY;
 }
 
        gfn->flags = KVM_DIRTY_GFN_F_DIRTY;
 }
 
-static inline bool kvm_dirty_gfn_invalid(struct kvm_dirty_gfn *gfn)
-{
-       return gfn->flags == 0;
-}
-
 static inline bool kvm_dirty_gfn_harvested(struct kvm_dirty_gfn *gfn)
 {
        return gfn->flags & KVM_DIRTY_GFN_F_RESET;
 static inline bool kvm_dirty_gfn_harvested(struct kvm_dirty_gfn *gfn)
 {
        return gfn->flags & KVM_DIRTY_GFN_F_RESET;