OSDN Git Service

kvm: arm64: Only define __kvm_ex_table for CONFIG_KVM
authorDavid Brazdil <dbrazdil@google.com>
Tue, 22 Sep 2020 20:49:03 +0000 (21:49 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 30 Sep 2020 07:33:52 +0000 (08:33 +0100)
commit3471ee06e33e413d7fa73c1aa3092e6e794b9e05
tree55761f995a75def434b0e51f94b80f4b4bd07c0e
parentce492a16ffb8814d9651c3fdafc363bfa1b01189
kvm: arm64: Only define __kvm_ex_table for CONFIG_KVM

Minor cleanup that only creates __kvm_ex_table ELF section and
related symbols if CONFIG_KVM is enabled. Also useful as more
hyp-specific sections will be added.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200922204910.7265-4-dbrazdil@google.com
arch/arm64/kernel/vmlinux.lds.S