Thread (19 messages) flat view 19 messages, 4 authors, 2022-03-15

Re: [PATCH 3/6] KVM: PPC: Book3S PR: Declare kvmppc_handle_exit_pr()

From: Christophe Leroy <hidden>
Date: 2021-08-19 14:45:18


Le 19/08/2021 à 14:56, Cédric Le Goater a écrit :
quoted hunk ↗ jump to hunk
This fixes a compile error with W=1.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
  arch/powerpc/kvm/book3s.h | 1 +
  1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/kvm/book3s.h b/arch/powerpc/kvm/book3s.h
index 740e51def5a5..c08f93b7f523 100644
--- a/arch/powerpc/kvm/book3s.h
+++ b/arch/powerpc/kvm/book3s.h
@@ -24,6 +24,7 @@ extern int kvmppc_core_emulate_mfspr_pr(struct kvm_vcpu *vcpu,
  					int sprn, ulong *spr_val);
  extern int kvmppc_book3s_init_pr(void);
  extern void kvmppc_book3s_exit_pr(void);
+extern int kvmppc_handle_exit_pr(struct kvm_vcpu *vcpu, unsigned int exit_nr);
Don't add new 'extern' keywords, they are useless and pointless for functions prototypes.
  
  #ifdef CONFIG_PPC_TRANSACTIONAL_MEM
  extern void kvmppc_emulate_tabort(struct kvm_vcpu *vcpu, int ra_val);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help