Skip to content

Commit 109bbba

Browse files
xzpeterbonzini
authored andcommitted
KVM: Drop unused kvm_dirty_gfn_invalid()
Drop the unused function as reported by test bot. Reported-by: kernel test robot <[email protected]> Signed-off-by: Peter Xu <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent d9130a2 commit 109bbba

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

virt/kvm/dirty_ring.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,6 @@ static inline void kvm_dirty_gfn_set_dirtied(struct kvm_dirty_gfn *gfn)
9191
gfn->flags = KVM_DIRTY_GFN_F_DIRTY;
9292
}
9393

94-
static inline bool kvm_dirty_gfn_invalid(struct kvm_dirty_gfn *gfn)
95-
{
96-
return gfn->flags == 0;
97-
}
98-
9994
static inline bool kvm_dirty_gfn_harvested(struct kvm_dirty_gfn *gfn)
10095
{
10196
return gfn->flags & KVM_DIRTY_GFN_F_RESET;

0 commit comments

Comments
 (0)