Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: PPC: booke: Mark three local functions "static"

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

authored by

Sean Christopherson and committed by
Michael Ellerman
e83ca8cf eeac8ede

+4 -3
+3 -2
arch/powerpc/kvm/booke.c
··· 623 623 spin_unlock_irqrestore(&vcpu->arch.wdt_lock, flags); 624 624 } 625 625 626 - void kvmppc_watchdog_func(struct timer_list *t) 626 + static void kvmppc_watchdog_func(struct timer_list *t) 627 627 { 628 628 struct kvm_vcpu *vcpu = from_timer(vcpu, t, arch.wdt_timer); 629 629 u32 tsr, new_tsr; ··· 1946 1946 dbg_reg->dbcr0 |= DBCR0_IDM; 1947 1947 return 0; 1948 1948 } 1949 - void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap, bool set) 1949 + static void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap, 1950 + bool set) 1950 1951 { 1951 1952 /* XXX: Add similar MSR protection for BookE-PR */ 1952 1953 #ifdef CONFIG_KVM_BOOKE_HV
+1 -1
arch/powerpc/kvm/e500mc.c
··· 168 168 kvmppc_booke_vcpu_put(vcpu); 169 169 } 170 170 171 - int kvmppc_e500mc_check_processor_compat(void) 171 + static int kvmppc_e500mc_check_processor_compat(void) 172 172 { 173 173 int r; 174 174