KVM: x86/mmu: Re-add const qualifier in kvm_tdp_mmu_zap_collapsible_sptes
kvm_tdp_mmu_zap_collapsible_sptes unnecessarily removes the const qualifier from its memlsot argument, leading to a compiler warning. Add the const annotation and pass it to subsequent functions. Signed-off-by:Ben Gardon <bgardon@google.com> Message-Id: <20210401233736.638171-2-bgardon@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/kvm/mmu/mmu.c 5 additions, 5 deletionsarch/x86/kvm/mmu/mmu.c
- arch/x86/kvm/mmu/mmu_internal.h 3 additions, 2 deletionsarch/x86/kvm/mmu/mmu_internal.h
- arch/x86/kvm/mmu/tdp_mmu.c 3 additions, 2 deletionsarch/x86/kvm/mmu/tdp_mmu.c
- arch/x86/kvm/mmu/tdp_mmu.h 2 additions, 1 deletionarch/x86/kvm/mmu/tdp_mmu.h
- include/linux/kvm_host.h 1 addition, 1 deletioninclude/linux/kvm_host.h
Loading
Please register or sign in to comment