diff mbox series

KVM: arm64: nv: select XARRAY_MULTI to fix build error

Message ID 20230816210949.17117-1-rdunlap@infradead.org (mailing list archive)
State New, archived
Headers show
Series KVM: arm64: nv: select XARRAY_MULTI to fix build error | expand

Commit Message

Randy Dunlap Aug. 16, 2023, 9:09 p.m. UTC
populate_nv_trap_config() uses xa_store_range(), which is only built
when XARRAY_MULTI is set, so select that symbol to prevent the build error.

aarch64-linux-ld: arch/arm64/kvm/emulate-nested.o: in function `populate_nv_trap_config':
emulate-nested.c:(.init.text+0x17c): undefined reference to `xa_store_range'

Fixes: d15fe1b2d2cc ("KVM: arm64: nv: Add trap forwarding infrastructure")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: kvmarm@lists.linux.dev
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
---
 arch/arm64/kvm/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Comments

Marc Zyngier Aug. 17, 2023, 9:29 a.m. UTC | #1
On Wed, 16 Aug 2023 14:09:49 -0700, Randy Dunlap wrote:
> populate_nv_trap_config() uses xa_store_range(), which is only built
> when XARRAY_MULTI is set, so select that symbol to prevent the build error.
> 
> aarch64-linux-ld: arch/arm64/kvm/emulate-nested.o: in function `populate_nv_trap_config':
> emulate-nested.c:(.init.text+0x17c): undefined reference to `xa_store_range'

Applied to next, thanks!

[1/1] KVM: arm64: nv: select XARRAY_MULTI to fix build error
      commit: 60046980bf60ed8846113b484d666a5fdf413be4

Cheers,

	M.
diff mbox series

Patch

diff -- a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig
--- a/arch/arm64/kvm/Kconfig
+++ b/arch/arm64/kvm/Kconfig
@@ -43,6 +43,7 @@  menuconfig KVM
 	select SCHED_INFO
 	select GUEST_PERF_EVENTS if PERF_EVENTS
 	select INTERVAL_TREE
+	select XARRAY_MULTI
 	help
 	  Support hosting virtualized guest machines.