[PATCH] KVM: x86: fix the return type of kvm_age_rmapp

From: Bo Liu
Date: Mon Apr 11 2022 - 04:14:48 EST


Change the return type of kvm_age_rmapp to "bool"

Signed-off-by: Bo Liu <liubo03@xxxxxxxxxx>
---
arch/x86/kvm/mmu/mmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index c623019929a7..799ab899f552 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -1572,7 +1572,7 @@ static bool kvm_age_rmapp(struct kvm *kvm, struct kvm_rmap_head *rmap_head,
{
u64 *sptep;
struct rmap_iterator iter;
- int young = 0;
+ bool young = false;

for_each_rmap_spte(rmap_head, &iter, sptep)
young |= mmu_spte_age(sptep);
--
2.27.0