All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@kaod.org>
To: linuxppc-dev@lists.ozlabs.org
Cc: "Christophe Leroy" <christophe.leroy@c-s.fr>,
	"Cédric Le Goater" <clg@kaod.org>
Subject: [PATCH v2 18/23] KVM: PPC: Make the VMX instruction emulation routines static
Date: Mon,  4 Jan 2021 15:32:01 +0100	[thread overview]
Message-ID: <20210104143206.695198-19-clg@kaod.org> (raw)
In-Reply-To: <20210104143206.695198-1-clg@kaod.org>

These are only used locally. It fixes these W=1 compile errors :

../arch/powerpc/kvm/powerpc.c:1521:5: error: no previous prototype for ‘kvmppc_get_vmx_dword’ [-Werror=missing-prototypes]
 1521 | int kvmppc_get_vmx_dword(struct kvm_vcpu *vcpu, int index, u64 *val)
      |     ^~~~~~~~~~~~~~~~~~~~
../arch/powerpc/kvm/powerpc.c:1539:5: error: no previous prototype for ‘kvmppc_get_vmx_word’ [-Werror=missing-prototypes]
 1539 | int kvmppc_get_vmx_word(struct kvm_vcpu *vcpu, int index, u64 *val)
      |     ^~~~~~~~~~~~~~~~~~~
../arch/powerpc/kvm/powerpc.c:1557:5: error: no previous prototype for ‘kvmppc_get_vmx_hword’ [-Werror=missing-prototypes]
 1557 | int kvmppc_get_vmx_hword(struct kvm_vcpu *vcpu, int index, u64 *val)
      |     ^~~~~~~~~~~~~~~~~~~~
../arch/powerpc/kvm/powerpc.c:1575:5: error: no previous prototype for ‘kvmppc_get_vmx_byte’ [-Werror=missing-prototypes]
 1575 | int kvmppc_get_vmx_byte(struct kvm_vcpu *vcpu, int index, u64 *val)
      |     ^~~~~~~~~~~~~~~~~~~

Cc: Paul Mackerras <paulus@ozlabs.org>
Fixes: acc9eb9305fe ("KVM: PPC: Reimplement LOAD_VMX/STORE_VMX instruction mmio emulation with analyse_instr() input")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 arch/powerpc/kvm/powerpc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index cf52d26f49cd..25966ae3271e 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -1518,7 +1518,7 @@ int kvmppc_handle_vmx_load(struct kvm_vcpu *vcpu,
 	return emulated;
 }
 
-int kvmppc_get_vmx_dword(struct kvm_vcpu *vcpu, int index, u64 *val)
+static int kvmppc_get_vmx_dword(struct kvm_vcpu *vcpu, int index, u64 *val)
 {
 	union kvmppc_one_reg reg;
 	int vmx_offset = 0;
@@ -1536,7 +1536,7 @@ int kvmppc_get_vmx_dword(struct kvm_vcpu *vcpu, int index, u64 *val)
 	return result;
 }
 
-int kvmppc_get_vmx_word(struct kvm_vcpu *vcpu, int index, u64 *val)
+static int kvmppc_get_vmx_word(struct kvm_vcpu *vcpu, int index, u64 *val)
 {
 	union kvmppc_one_reg reg;
 	int vmx_offset = 0;
@@ -1554,7 +1554,7 @@ int kvmppc_get_vmx_word(struct kvm_vcpu *vcpu, int index, u64 *val)
 	return result;
 }
 
-int kvmppc_get_vmx_hword(struct kvm_vcpu *vcpu, int index, u64 *val)
+static int kvmppc_get_vmx_hword(struct kvm_vcpu *vcpu, int index, u64 *val)
 {
 	union kvmppc_one_reg reg;
 	int vmx_offset = 0;
@@ -1572,7 +1572,7 @@ int kvmppc_get_vmx_hword(struct kvm_vcpu *vcpu, int index, u64 *val)
 	return result;
 }
 
-int kvmppc_get_vmx_byte(struct kvm_vcpu *vcpu, int index, u64 *val)
+static int kvmppc_get_vmx_byte(struct kvm_vcpu *vcpu, int index, u64 *val)
 {
 	union kvmppc_one_reg reg;
 	int vmx_offset = 0;
-- 
2.26.2


  parent reply	other threads:[~2021-01-04 15:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-04 14:31 [PATCH v2 00/23] powerpc: Fix W=1 compile errors Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 01/23] powerpc/mm: Include __find_linux_pte() prototype Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 02/23] powerpc/pseries/ras: Remove unused variable 'status' Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 03/23] powerpc/pseries/eeh: Make pseries_pcibios_bus_add_device() static Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 04/23] powerpc/pseries/ras: Make init_ras_hotplug_IRQ() static Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 05/23] powerpc/pmem: Include pmem prototypes Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 06/23] powerpc/setup_64: Make some routines static Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 07/23] powerpc/mce: Include prototypes Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 08/23] powerpc/smp: Include tick_broadcast() prototype Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 09/23] powerpc/smp: Make debugger_ipi_callback() static Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 10/23] powerpc/optprobes: Remove unused routine patch_imm32_load_insns() Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 11/23] powerpc/optprobes: Make patch_imm64_load_insns() static Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 12/23] powerpc/mm: Declare some prototypes Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 13/23] powerpc/mm: Move hpte_insert_repeating() prototype Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 14/23] powerpc/mm: Declare preload_new_slb_context() prototype Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 15/23] powerpc/mm/hugetlb: Make pseries_alloc_bootmem_huge_page() static Cédric Le Goater
2021-01-04 14:31 ` [PATCH v2 16/23] powerpc/mm: Declare arch_report_meminfo() prototype Cédric Le Goater
2021-01-04 14:32 ` [PATCH v2 17/23] powerpc/watchdog: Declare soft_nmi_interrupt() prototype Cédric Le Goater
2021-01-04 14:32 ` Cédric Le Goater [this message]
2021-01-04 14:32 ` [PATCH v2 19/23] KVM: PPC: Book3S HV: Include prototypes Cédric Le Goater
2021-01-04 14:32 ` [PATCH v2 20/23] KVM: PPC: Book3S HV: Declare some prototypes Cédric Le Goater
2021-01-04 14:32 ` [PATCH v2 21/23] powerpc/pseries: Make IOV setup routines static Cédric Le Goater
2021-01-04 14:32 ` [PATCH v2 22/23] powerpc/pcidn: " Cédric Le Goater
2021-01-04 14:32 ` [PATCH v2 23/23] powerpc/pseries/eeh: Make pseries_send_allow_unfreeze() static Cédric Le Goater
2021-02-03 11:40 ` [PATCH v2 00/23] powerpc: Fix W=1 compile errors Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210104143206.695198-19-clg@kaod.org \
    --to=clg@kaod.org \
    --cc=christophe.leroy@c-s.fr \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.