OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaa9b88
)
KVM: arm64: Mark the host stage-2 memory pools static
author
Quentin Perret
<qperret@google.com>
Fri, 14 May 2021 08:56:40 +0000
(08:56 +0000)
committer
Marc Zyngier
<maz@kernel.org>
Sat, 15 May 2021 09:27:59 +0000
(10:27 +0100)
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 <lkp@intel.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link:
https://lore.kernel.org/r/20210514085640.3917886-3-qperret@google.com
arch/arm64/kvm/hyp/nvhe/mem_protect.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kvm/hyp/nvhe/mem_protect.c
b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
index
e342f7f
..
4b60c00
100644
(file)
--- 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;
+st
atic st
ruct hyp_pool host_s2_mem;
+st
atic st
ruct hyp_pool host_s2_dev;
/*
* Copies of the host's CPU features registers holding sanitized values.