KVM: PPC: Fix refactoring goof in kvmppc_e500mc_init()
authorSean Christopherson <seanjc@google.com>
Thu, 19 Jan 2023 18:21:58 +0000 (18:21 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Jan 2023 18:00:32 +0000 (13:00 -0500)
Fix a build error due to a mixup during a recent refactoring.  The error
was reported during code review, but the fixed up patch didn't make it
into the final commit.

Fixes: 474856bad921 ("KVM: PPC: Move processor compatibility check to module init")
Link: https://lore.kernel.org/all/87cz93snqc.fsf@mpe.ellerman.id.au
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230119182158.4026656-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/e500mc.c

index 0dce93ccaadfa23a81dde9ae98f8de92ee76f07a..96a4803ba31c65045f3673e46ef2c6730f00f096 100644 (file)
@@ -1211,7 +1211,7 @@ int kvmppc_handle_exit(struct kvm_vcpu *vcpu, unsigned int exit_nr)
 
 /*
  * On cores with Vector category, KVM is loaded only if CONFIG_ALTIVEC,
- * see kvmppc_core_check_processor_compat().
+ * see kvmppc_e500mc_check_processor_compat().
  */
 #ifdef CONFIG_ALTIVEC
        case BOOKE_INTERRUPT_ALTIVEC_UNAVAIL:
index 611532a0dedcd4b0618c031c61041fc3fbf59850..a309138927ff0ca56b827f5da500d788dd4b0575 100644 (file)
@@ -168,7 +168,7 @@ static void kvmppc_core_vcpu_put_e500mc(struct kvm_vcpu *vcpu)
        kvmppc_booke_vcpu_put(vcpu);
 }
 
-int kvmppc_core_check_processor_compat(void)
+int kvmppc_e500mc_check_processor_compat(void)
 {
        int r;
 
@@ -390,7 +390,7 @@ static int __init kvmppc_e500mc_init(void)
 
        r = kvmppc_e500mc_check_processor_compat();
        if (r)
-               return kvmppc_e500mc;
+               goto err_out;
 
        r = kvmppc_booke_init();
        if (r)