summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/arm.c
diff options
context:
space:
mode:
authorXu Jia <xujia39@huawei.com>2021-03-31 15:36:19 +0800
committerMarc Zyngier <maz@kernel.org>2021-03-31 09:14:16 +0100
commitb1306fef1f48c0af1d659c18c53cf275fdcc94be (patch)
tree3247a56861c06ed434532b97329ceedf7d975d86 /arch/arm64/kvm/arm.c
parent7c4199375ae347449fbde43cc8bf174ae6383d8e (diff)
downloadlinux-stable-b1306fef1f48c0af1d659c18c53cf275fdcc94be.tar.gz
linux-stable-b1306fef1f48c0af1d659c18c53cf275fdcc94be.tar.bz2
linux-stable-b1306fef1f48c0af1d659c18c53cf275fdcc94be.zip
KVM: arm64: Make symbol '_kvm_host_prot_finalize' static
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> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/1617176179-31931-1-git-send-email-xujia39@huawei.com
Diffstat (limited to 'arch/arm64/kvm/arm.c')
-rw-r--r--arch/arm64/kvm/arm.c2
1 files changed, 1 insertions, 1 deletions
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 @@ out_err:
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));
}