]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe
authorDavid Brazdil <dbrazdil@google.com>
Thu, 25 Jun 2020 13:14:06 +0000 (14:14 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 5 Jul 2020 17:37:17 +0000 (18:37 +0100)
commit26f8ef82fc01f732542feedf190268327be59298
tree62a3291fa9dbfe0eb7aeb5a72add5c8579243110
parent88732dd384b9767583d52f7ebc7696d1966fdb10
KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe

__hyp_call_panic_nvhe contains inline assembly which did not declare
its dependency on the __hyp_panic_string symbol.

The static-declared string has previously been kept alive because of a use in
__hyp_call_panic_vhe. Fix this in preparation for separating the source files
between VHE and nVHE when the two users land in two different compilation
units. The static variable otherwise gets dropped when compiling the nVHE
source file, causing an undefined symbol linker error later.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200625131420.71444-2-dbrazdil@google.com
arch/arm64/kvm/hyp/switch.c