Re: [PATCH 7/9] KVM: mmu: Move mmu lock/unlock to arch code for clear dirty log

From: Vipin Sharma
Date: Mon Apr 24 2023 - 12:46:03 EST


On Fri, Apr 21, 2023 at 12:43 PM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> Hi Vipin,
>
> All warnings (new ones prefixed by >>):
>
> arch/riscv/kvm/mmu.c: In function 'kvm_arch_mmu_enable_log_dirty_pt_masked':
> >> arch/riscv/kvm/mmu.c:399:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
> 399 | phys_addr_t base_gfn = slot->base_gfn + gfn_offset;
> | ^~~~~~~~~~~
>
>

I will fix it in v2.