KVM: PPC: booke: Mark three local functions "static"
authorSean Christopherson <seanjc@google.com>
Wed, 8 Mar 2023 23:24:37 +0000 (15:24 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 22 Mar 2023 11:45:41 +0000 (22:45 +1100)
Tag a few functions that are local and don't have a previous prototype
as "static".

No functional change intended.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202303031630.ntvIuYqo-lkp@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230308232437.500031-1-seanjc@google.com
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/e500mc.c

index 01adffb2466781fc8bf92e2d2de829891f874caf..ce37d282be6d2aee4d2e4847783bedfe31d05632 100644 (file)
@@ -623,7 +623,7 @@ static void arm_next_watchdog(struct kvm_vcpu *vcpu)
        spin_unlock_irqrestore(&vcpu->arch.wdt_lock, flags);
 }
 
-void kvmppc_watchdog_func(struct timer_list *t)
+static void kvmppc_watchdog_func(struct timer_list *t)
 {
        struct kvm_vcpu *vcpu = from_timer(vcpu, t, arch.wdt_timer);
        u32 tsr, new_tsr;
@@ -1946,7 +1946,8 @@ static int kvmppc_booke_add_watchpoint(struct debug_reg *dbg_reg, uint64_t addr,
        dbg_reg->dbcr0 |= DBCR0_IDM;
        return 0;
 }
-void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap, bool set)
+static void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap,
+                                 bool set)
 {
        /* XXX: Add similar MSR protection for BookE-PR */
 #ifdef CONFIG_KVM_BOOKE_HV
index a309138927ff0ca56b827f5da500d788dd4b0575..d58df71ace584f01af318faf0efbb0cac2bb624a 100644 (file)
@@ -168,7 +168,7 @@ static void kvmppc_core_vcpu_put_e500mc(struct kvm_vcpu *vcpu)
        kvmppc_booke_vcpu_put(vcpu);
 }
 
-int kvmppc_e500mc_check_processor_compat(void)
+static int kvmppc_e500mc_check_processor_compat(void)
 {
        int r;