]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: MIPS: Drop @max param from mmu_topup_memory_cache()
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 3 Jul 2020 02:35:43 +0000 (19:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jul 2020 17:29:43 +0000 (13:29 -0400)
commit220a7060d58f4ea7e72c04618b2774228a37468c
tree4ddfffb0a92f772aaeff4a17e843fff4c0c24321
parentc1a33aebe91d49c958df1648b2a84db96c403075
KVM: MIPS: Drop @max param from mmu_topup_memory_cache()

Replace the @max param in mmu_topup_memory_cache() and instead use
ARRAY_SIZE() to terminate the loop to fill the cache.  This removes a
BUG_ON() and sets the stage for moving MIPS to the common memory cache
implementation.

No functional change intended.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200703023545.8771-20-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/mmu.c