Skip to content

Commit

Permalink
KVM: Drop unused kvm_dirty_gfn_invalid()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
xzpeter authored and bonzini committed Sep 6, 2021
1 parent d9130a2 commit 109bbba
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions virt/kvm/dirty_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ static inline void kvm_dirty_gfn_set_dirtied(struct kvm_dirty_gfn *gfn)
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;
Expand Down

0 comments on commit 109bbba

Please sign in to comment.