KVM: Drop unused kvm_dirty_gfn_invalid()
PATCH v2 1/1 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]>
--
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
@@ -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
Quoted 18 lines · Peter Xu
Drop the unused function as reported by test bot.
Reported-by kernel test robot <[email protected]>Signed-off-by Peter Xu <[email protected]>--
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@@ -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