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

KVM: PPC: BookE: Fix W=1 warnings

Fix various W=1 warnings in booke.c:

arch/powerpc/kvm/booke.c:1008:5: error: no previous prototype for ‘kvmppc_handle_exit’ [-Werror=missing-prototypes]
1008 | int kvmppc_handle_exit(struct kvm_vcpu *vcpu, unsigned int exit_nr)
| ^~~~~~~~~~~~~~~~~~
arch/powerpc/kvm/booke.c:1009: warning: Function parameter or member 'vcpu' not described in 'kvmppc_handle_exit'
arch/powerpc/kvm/booke.c:1009: warning: Function parameter or member 'exit_nr' not described in 'kvmppc_handle_exit'

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/202304020827.3LEZ86WB-lkp@intel.com/
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230403045314.3095410-1-mpe@ellerman.id.au

+4 -1
+1 -1
arch/powerpc/kvm/booke.c
··· 1000 1000 } 1001 1001 } 1002 1002 1003 - /** 1003 + /* 1004 1004 * kvmppc_handle_exit 1005 1005 * 1006 1006 * Return value is in the form (errcode<<2 | RESUME_FLAG_HOST | RESUME_FLAG_NV)
+3
arch/powerpc/kvm/booke.h
··· 109 109 { 110 110 mtspr(SPRN_DBSR, mfspr(SPRN_DBSR)); 111 111 } 112 + 113 + int kvmppc_handle_exit(struct kvm_vcpu *vcpu, unsigned int exit_nr); 114 + 112 115 #endif /* __KVM_BOOKE_H__ */