• Cédric Le Goater's avatar
    KVM: PPC: Book3S HV: Declare some prototypes · ce275179
    Cédric Le Goater authored
    This fixes these W=1 compile errors:
    
    ../arch/powerpc/kvm/book3s_hv_builtin.c:425:6: error: no previous prototype for ‘kvmppc_read_intr’ [-Werror=missing-prototypes]
      425 | long kvmppc_read_intr(void)
          |      ^~~~~~~~~~~~~~~~
    ../arch/powerpc/kvm/book3s_hv_builtin.c:652:6: error: no previous prototype for ‘kvmppc_bad_interrupt’ [-Werror=missing-prototypes]
      652 | void kvmppc_bad_interrupt(struct pt_regs *regs)
          |      ^~~~~~~~~~~~~~~~~~~~
    ../arch/powerpc/kvm/book3s_hv_builtin.c:695:6: error: no previous prototype for ‘kvmhv_p9_set_lpcr’ [-Werror=missing-prototypes]
      695 | void kvmhv_p9_set_lpcr(struct kvm_split_mode *sip)
          |      ^~~~~~~~~~~~~~~~~
    ../arch/powerpc/kvm/book3s_hv_builtin.c:740:6: error: no previous prototype for ‘kvmhv_p9_restore_lpcr’ [-Werror=missing-prototypes]
      740 | void kvmhv_p9_restore_lpcr(struct kvm_split_mode *sip)
          |      ^~~~~~~~~~~~~~~~~~~~~
    ../arch/powerpc/kvm/book3s_hv_builtin.c:768:6: error: no previous prototype for ‘kvmppc_set_msr_hv’ [-Werror=missing-prototypes]
      768 | void kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 msr)
          |      ^~~~~~~~~~~~~~~~~
    ../arch/powerpc/kvm/book3s_hv_builtin.c:817:6: error: no previous prototype for ‘kvmppc_inject_interrupt_hv’ [-Werror=missing-prototypes]
      817 | void kvmppc_inject_interrupt_hv(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags)
    Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Link: https://lore.kernel.org/r/20210104143206.695198-21-clg@kaod.org
    ce275179
kvm_book3s.h 16.5 KB