MIPS: KVM: fix vz.c kernel-doc notation
PATCH 1/1 MIPS: KVM: fix vz.c kernel-doc notation
Fix all kernel-doc warnings in mips/kvm/vz.c as reported by the kernel test robot:
arch/mips/kvm/vz.c:471: warning: Function parameter or member 'out_compare' not described in '_kvm_vz_save_htimer' arch/mips/kvm/vz.c:471: warning: Function parameter or member 'out_cause' not described in '_kvm_vz_save_htimer' arch/mips/kvm/vz.c:471: warning: Excess function parameter 'compare' description in '_kvm_vz_save_htimer' arch/mips/kvm/vz.c:471: warning: Excess function parameter 'cause' description in '_kvm_vz_save_htimer'
arch/mips/kvm/vz.c:1551: warning: No description found for return value of 'kvm_trap_vz_handle_cop_unusable' arch/mips/kvm/vz.c:1552: warning: expecting prototype for kvm_trap_vz_handle_cop_unusuable(). Prototype was for kvm_trap_vz_handle_cop_unusable() instead arch/mips/kvm/vz.c:1597: warning: No description found for return value of 'kvm_trap_vz_handle_msa_disabled'
--- arch/mips/kvm/vz.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
arch/mips/kvm/vz.c +9 -3
@@ -458,8 +458,8 @@ void kvm_vz_acquire_htimer(struct kvm_vc/** * _kvm_vz_save_htimer() - Switch to software emulation of guest timer. * @vcpu: Virtual CPU. -* @compare: Pointer to write compare value to. -* @cause: Pointer to write cause value to. +* @out_compare: Pointer to write compare value to. +* @out_cause: Pointer to write cause value to. * * Save VZ guest timer state and switch to software emulation of guest CP0 * timer. The hard timer must already be in use, so preemption should be
@@ -1541,11 +1541,14 @@ static int kvm_trap_vz_handle_guest_exit }/** -* kvm_trap_vz_handle_cop_unusuable() - Guest used unusable coprocessor. +* kvm_trap_vz_handle_cop_unusable() - Guest used unusable coprocessor. * @vcpu: Virtual CPU context. * * Handle when the guest attempts to use a coprocessor which hasn't been allowed * by the root context. +* +* Return: value indicating whether to resume the host or the guest +* (RESUME_HOST or RESUME_GUEST) */ static int kvm_trap_vz_handle_cop_unusable (struct kvm_vcpu *vcpu) {
@@ -1592,6 +1595,9 @@ static int kvm_trap_vz_handle_cop_unusab* * Handle when the guest attempts to use MSA when it is disabled in the root * context. +* +* Return: value indicating whether to resume the host or the guest +* (RESUME_HOST or RESUME_GUEST) */ static int kvm_trap_vz_handle_msa_disabled (struct kvm_vcpu *vcpu) {
Quoted 21 lines · Randy Dunlap
Fix all kernel-doc warnings in
mips/kvm/vz.cas reported by the kernel test robot:
arch/mips/kvm/vz.c:471: warning: Function parameter or member 'out_compare' not described in '_kvm_vz_save_htimer'arch/mips/kvm/vz.c:471: warning: Function parameter or member 'out_cause' not described in '_kvm_vz_save_htimer'arch/mips/kvm/vz.c:471: warning: Excess function parameter 'compare' description in '_kvm_vz_save_htimer'arch/mips/kvm/vz.c:471: warning: Excess function parameter 'cause' description in '_kvm_vz_save_htimer'
arch/mips/kvm/vz.c:1551: warning: No description found for return value of 'kvm_trap_vz_handle_cop_unusable'arch/mips/kvm/vz.c:1552: warning: expecting prototype forkvm_trap_vz_handle_cop_unusuable(). Prototype was forkvm_trap_vz_handle_cop_unusable()insteadarch/mips/kvm/vz.c:1597: warning: No description found for return value of 'kvm_trap_vz_handle_msa_disabled'Fixes c992a4f6a9b0 ("KVM: MIPS: Implement VZ support")Fixes f4474d50c7d4 ("KVM: MIPS/VZ: Support hardware guest timer")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Thomas Bogendoerfer <[email protected]>Cc Huacai Chen <[email protected]>Cc Aleksandar Markovic <[email protected]>Cc James Hogan <[email protected]>
Quoted 3 lines
--- arch/mips/kvm/vz.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
applied to mips-fixes.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]