linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: arm64: fix __kvm_host_psci_cpu_entry() prototype
@ 2023-07-24 12:18 Arnd Bergmann
  2023-07-26  7:27 ` Marc Zyngier
  2023-07-26 19:54 ` Oliver Upton
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2023-07-24 12:18 UTC (permalink / raw)
  To: Marc Zyngier, Oliver Upton, Catalin Marinas, Will Deacon, Mostafa Saleh
  Cc: Arnd Bergmann, James Morse, Suzuki K Poulose, Zenghui Yu,
	Fuad Tabba, Ricardo Koller, Quentin Perret, Kalesh Singh,
	linux-arm-kernel, kvmarm, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The kvm_host_psci_cpu_entry() function was renamed in order to add a wrapper around
it, but the prototype did not change, so now the missing-prototype warning came
back in W=1 builds:

arch/arm64/kvm/hyp/nvhe/psci-relay.c:203:28: error: no previous prototype for function '__kvm_host_psci_cpu_entry' [-Werror,-Wmissing-prototypes]
asmlinkage void __noreturn __kvm_host_psci_cpu_entry(bool is_cpu_on)

Fixes: dcf89d1111995 ("KVM: arm64: Add missing BTI instructions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm64/include/asm/kvm_asm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/include/asm/kvm_asm.h b/arch/arm64/include/asm/kvm_asm.h
index 7d170aaa2db41..24e28bb2d95b6 100644
--- a/arch/arm64/include/asm/kvm_asm.h
+++ b/arch/arm64/include/asm/kvm_asm.h
@@ -278,7 +278,7 @@ asmlinkage void __noreturn hyp_panic_bad_stack(void);
 asmlinkage void kvm_unexpected_el2_exception(void);
 struct kvm_cpu_context;
 void handle_trap(struct kvm_cpu_context *host_ctxt);
-asmlinkage void __noreturn kvm_host_psci_cpu_entry(bool is_cpu_on);
+asmlinkage void __noreturn __kvm_host_psci_cpu_entry(bool is_cpu_on);
 void __noreturn __pkvm_init_finalise(void);
 void kvm_nvhe_prepare_backtrace(unsigned long fp, unsigned long pc);
 void kvm_patch_vector_branch(struct alt_instr *alt,
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] KVM: arm64: fix __kvm_host_psci_cpu_entry() prototype
  2023-07-24 12:18 [PATCH] KVM: arm64: fix __kvm_host_psci_cpu_entry() prototype Arnd Bergmann
@ 2023-07-26  7:27 ` Marc Zyngier
  2023-07-26 19:54 ` Oliver Upton
  1 sibling, 0 replies; 3+ messages in thread
From: Marc Zyngier @ 2023-07-26  7:27 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Oliver Upton, Catalin Marinas, Will Deacon, Mostafa Saleh,
	Arnd Bergmann, James Morse, Suzuki K Poulose, Zenghui Yu,
	Fuad Tabba, Ricardo Koller, Quentin Perret, Kalesh Singh,
	linux-arm-kernel, kvmarm, linux-kernel

On Mon, 24 Jul 2023 13:18:42 +0100,
Arnd Bergmann <arnd@kernel.org> wrote:
> 
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The kvm_host_psci_cpu_entry() function was renamed in order to add a wrapper around
> it, but the prototype did not change, so now the missing-prototype warning came
> back in W=1 builds:
> 
> arch/arm64/kvm/hyp/nvhe/psci-relay.c:203:28: error: no previous prototype for function '__kvm_host_psci_cpu_entry' [-Werror,-Wmissing-prototypes]
> asmlinkage void __noreturn __kvm_host_psci_cpu_entry(bool is_cpu_on)
> 
> Fixes: dcf89d1111995 ("KVM: arm64: Add missing BTI instructions")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Marc Zyngier <maz@kernel.org>

	M.

-- 
Without deviation from the norm, progress is not possible.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] KVM: arm64: fix __kvm_host_psci_cpu_entry() prototype
  2023-07-24 12:18 [PATCH] KVM: arm64: fix __kvm_host_psci_cpu_entry() prototype Arnd Bergmann
  2023-07-26  7:27 ` Marc Zyngier
@ 2023-07-26 19:54 ` Oliver Upton
  1 sibling, 0 replies; 3+ messages in thread
From: Oliver Upton @ 2023-07-26 19:54 UTC (permalink / raw)
  To: Mostafa Saleh, Catalin Marinas, Will Deacon, Arnd Bergmann, Marc Zyngier
  Cc: Oliver Upton, linux-kernel, Arnd Bergmann, Ricardo Koller,
	Kalesh Singh, kvmarm, Fuad Tabba, James Morse, linux-arm-kernel,
	Suzuki K Poulose, Zenghui Yu, Quentin Perret

On Mon, 24 Jul 2023 14:18:42 +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The kvm_host_psci_cpu_entry() function was renamed in order to add a wrapper around
> it, but the prototype did not change, so now the missing-prototype warning came
> back in W=1 builds:
> 
> arch/arm64/kvm/hyp/nvhe/psci-relay.c:203:28: error: no previous prototype for function '__kvm_host_psci_cpu_entry' [-Werror,-Wmissing-prototypes]
> asmlinkage void __noreturn __kvm_host_psci_cpu_entry(bool is_cpu_on)
> 
> [...]

Applied to kvmarm/fixes, thanks!

[1/1] KVM: arm64: fix __kvm_host_psci_cpu_entry() prototype
      https://git.kernel.org/kvmarm/kvmarm/c/01b94b0f3922

--
Best,
Oliver

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-26 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-24 12:18 [PATCH] KVM: arm64: fix __kvm_host_psci_cpu_entry() prototype Arnd Bergmann
2023-07-26  7:27 ` Marc Zyngier
2023-07-26 19:54 ` Oliver Upton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).