Skip to content

Commit 3fdc15f

Browse files
Quentin PerretMarc Zyngier
authored andcommitted
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: 1025c8c ("KVM: arm64: Wrap the host with a stage 2") Reported-by: kernel test robot <[email protected]> Signed-off-by: Quentin Perret <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent eaa9b88 commit 3fdc15f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kvm/hyp/nvhe/mem_protect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
extern unsigned long hyp_nr_cpus;
2424
struct host_kvm host_kvm;
2525

26-
struct hyp_pool host_s2_mem;
27-
struct hyp_pool host_s2_dev;
26+
static struct hyp_pool host_s2_mem;
27+
static struct hyp_pool host_s2_dev;
2828

2929
/*
3030
* Copies of the host's CPU features registers holding sanitized values.

0 commit comments

Comments
 (0)