KVM: arm64: Drop init_common_resources()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 12 Aug 2021 05:09:52 +0000 (10:39 +0530)
committerMarc Zyngier <maz@kernel.org>
Wed, 18 Aug 2021 08:26:07 +0000 (09:26 +0100)
Could do without this additional indirection via init_common_resources() by
just calling kvm_set_ipa_limit() directly instead.

Cc: Marc Zyngier <maz@kernel.org>
Cc: James Morse <james.morse@arm.com>
Cc: Alexandru Elisei <alexandru.elisei@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: kvmarm@lists.cs.columbia.edu
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1628744994-16623-4-git-send-email-anshuman.khandual@arm.com
arch/arm64/kvm/arm.c

index e9a2b8f277922f85ed33ac4c09eefb75f7c5613c..19560e457c111a0ec764dd61f3af1eee5094116a 100644 (file)
@@ -1696,11 +1696,6 @@ static bool init_psci_relay(void)
        return true;
 }
 
-static int init_common_resources(void)
-{
-       return kvm_set_ipa_limit();
-}
-
 static int init_subsystems(void)
 {
        int err = 0;
@@ -2102,7 +2097,7 @@ int kvm_arch_init(void *opaque)
                }
        }
 
-       err = init_common_resources();
+       err = kvm_set_ipa_limit();
        if (err)
                return err;