]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Drop @max_level from kvm_mmu_max_mapping_level()
authorDavid Matlack <dmatlack@google.com>
Fri, 23 Aug 2024 23:56:43 +0000 (16:56 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 30 Oct 2024 22:25:42 +0000 (15:25 -0700)
commit8ccd51cb5911df764f36cc7083bbc22bdd8a7aae
tree4c47df9312e9029524832c81edb6dad4343e9e28
parentb9883ee40d7e6c3f3fb59c247283b152fdde955c
KVM: x86/mmu: Drop @max_level from kvm_mmu_max_mapping_level()

Drop the @max_level parameter from kvm_mmu_max_mapping_level(). All
callers pass in PG_LEVEL_NUM, so @max_level can be replaced with
PG_LEVEL_NUM in the function body.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20240823235648.3236880-2-dmatlack@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/mmu_internal.h
arch/x86/kvm/mmu/tdp_mmu.c