]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Stub EXPORT_SYMBOL for nVHE EL2 code
authorQuentin Perret <qperret@google.com>
Wed, 3 Feb 2021 14:19:31 +0000 (14:19 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 3 Feb 2021 16:42:57 +0000 (16:42 +0000)
commite6809a11e3c3e6918e9ebef89cde65e16d689db2
tree475dcebe5f62678c2c37de2d7688676b97ffdb2c
parent3bff5337b565ddff8ab188f750390f5f31677b2d
KVM: arm64: Stub EXPORT_SYMBOL for nVHE EL2 code

In order to ensure the module loader does not get confused if a symbol
is exported in EL2 nVHE code (as will be the case when we will compile
e.g. lib/memset.S into the EL2 object), make sure to stub all exports
using __DISABLE_EXPORTS in the nvhe folder.

Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210203141931.615898-3-qperret@google.com
arch/arm64/kvm/hyp/nvhe/Makefile