Skip to contentSkip to conversation

KVM: Drop unused kvm_dirty_gfn_invalid()

PATCH Applied Peter Xu 2 participants 2 messages Sep 1, 2021 – Sep 6, 2021 KVM

lore
Share & tools
lore

Peter Xu

author
#0 lore raw

PATCH v2 1/1 KVM: Drop unused kvm_dirty_gfn_invalid()

Drop the unused function as reported by test bot.

--
v2:
- Fix the subject that points to the right function; the copy-paste failed.

---
 virt/kvm/dirty_ring.c | 5 -----
 1 file changed, 5 deletions(-)
virt/kvm/dirty_ring.c +0 -5
index 7aafefc50aa7..88f4683198ea 100644
@@ -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;
Signature · 1 line
2.31.1
maintainer Applied
#1 lore raw
Quoted 18 lines · Peter Xu

Drop the unused function as reported by test bot.

--
v2:
- Fix the subject that points to the right function; the copy-paste failed.

---
  virt/kvm/dirty_ring.c | 5 -----
  1 file changed, 5 deletions(-)
virt/kvm/dirty_ring.c +0 -0
index 7aafefc50aa7..88f4683198ea 100644
@@ -91,11 +91,6 @@ static inline void kvm_dirty_gfn_set_dirtied(struct kvm_dirty_gfn *gfn)
  	gfn->flags = KVM_DIRTY_GFN_F_DIRTY;

virt/kvm/dirty_ring.c static inline void kvm_dirty_gfn_set_dirtied(struct kvm_dirty_gfn *gfn) · line 96

Quoted 10 lines
virt/kvm/dirty_ring.c +0 -5
  }
 
-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;

Queued, thanks.

Paolo