Skip to content

Commit eaa9b88

Browse files
Quentin PerretMarc Zyngier
authored andcommitted
KVM: arm64: Mark pkvm_pgtable_mm_ops static
It is not used outside of setup.c, mark it static. Fixes:f320bc742bc2 ("KVM: arm64: Prepare the creation of s1 mappings at EL2") 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 fcb8283 commit eaa9b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <nvhe/trap_handler.h>
1818

1919
struct hyp_pool hpool;
20-
struct kvm_pgtable_mm_ops pkvm_pgtable_mm_ops;
2120
unsigned long hyp_nr_cpus;
2221

2322
#define hyp_percpu_size ((unsigned long)__per_cpu_end - \
@@ -27,6 +26,7 @@ static void *vmemmap_base;
2726
static void *hyp_pgt_base;
2827
static void *host_s2_mem_pgt_base;
2928
static void *host_s2_dev_pgt_base;
29+
static struct kvm_pgtable_mm_ops pkvm_pgtable_mm_ops;
3030

3131
static int divide_memory_pool(void *virt, unsigned long size)
3232
{

0 commit comments

Comments
 (0)