All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] KVM: arm64: Make symbol '_kvm_host_prot_finalize' static
@ 2021-03-31  7:36 ` Xu Jia
  0 siblings, 0 replies; 6+ messages in thread
From: Xu Jia @ 2021-03-31  7:36 UTC (permalink / raw)
  To: xujia39, Marc Zyngier, Catalin Marinas, Will Deacon
  Cc: linux-arm-kernel, kvmarm, linux-kernel, kernel-janitors

The sparse tool complains as follows:

arch/arm64/kvm/arm.c:1900:6: warning:
 symbol '_kvm_host_prot_finalize' was not declared. Should it be static?

This symbol is not used outside of arm.c, so this
commit marks it static.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xu Jia <xujia39@huawei.com>
---
 arch/arm64/kvm/arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c
index 2835400fd298..76a7de16e5a6 100644
--- a/arch/arm64/kvm/arm.c
+++ b/arch/arm64/kvm/arm.c
@@ -1897,7 +1897,7 @@ static int init_hyp_mode(void)
 	return err;
 }
 
-void _kvm_host_prot_finalize(void *discard)
+static void _kvm_host_prot_finalize(void *discard)
 {
 	WARN_ON(kvm_call_hyp_nvhe(__pkvm_prot_finalize));
 }


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

end of thread, other threads:[~2021-03-31  9:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31  7:36 [PATCH -next] KVM: arm64: Make symbol '_kvm_host_prot_finalize' static Xu Jia
2021-03-31  7:36 ` Xu Jia
2021-03-31  7:36 ` Xu Jia
2021-03-31  8:18 ` Marc Zyngier
2021-03-31  8:18   ` Marc Zyngier
2021-03-31  8:18   ` Marc Zyngier

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.