diff options
authorQuentin Perret <>2021-05-14 08:56:40 +0000
committerMarc Zyngier <>2021-05-15 10:27:59 +0100
commit3fdc15fe8c6445175d61f0fac111d2ee9354e385 (patch)
parenteaa9b88dae64254a87d3d83b77afa71ee992f502 (diff)
KVM: arm64: Mark the host stage-2 memory pools static
The host stage-2 memory pools are not used outside of mem_protect.c, mark them static. Fixes: 1025c8c0c6ac ("KVM: arm64: Wrap the host with a stage 2") Reported-by: kernel test robot <> Signed-off-by: Quentin Perret <> Signed-off-by: Marc Zyngier <> Link:
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/mem_protect.c b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
index e342f7f4f4fb..4b60c0056c04 100644
--- a/arch/arm64/kvm/hyp/nvhe/mem_protect.c
+++ b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
@@ -23,8 +23,8 @@
extern unsigned long hyp_nr_cpus;
struct host_kvm host_kvm;
-struct hyp_pool host_s2_mem;
-struct hyp_pool host_s2_dev;
+static struct hyp_pool host_s2_mem;
+static struct hyp_pool host_s2_dev;
* Copies of the host's CPU features registers holding sanitized values.