]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Fix build failure without IOMMU support
authorJordan Niethe <jniethe5@gmail.com>
Thu, 21 Feb 2019 03:28:48 +0000 (14:28 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 22 Feb 2019 01:51:02 +0000 (12:51 +1100)
commite9787596330b91bb616454b0123e78185a5f7534
tree50be6f849afe2986dedcf2b76bc1ecdd8466e725
parentec076d73913654397b16bed47e3f2cfe3219ec8d
KVM: PPC: Book3S HV: Fix build failure without IOMMU support

Currently trying to build without IOMMU support will fail:

  (.text+0x1380): undefined reference to `kvmppc_h_get_tce'
  (.text+0x1384): undefined reference to `kvmppc_rm_h_put_tce'
  (.text+0x149c): undefined reference to `kvmppc_rm_h_stuff_tce'
  (.text+0x14a0): undefined reference to `kvmppc_rm_h_put_tce_indirect'

This happens because turning off IOMMU support will prevent
book3s_64_vio_hv.c from being built because it is only built when
SPAPR_TCE_IOMMU is set, which depends on IOMMU support.

Fix it using ifdefs for the undefined references.

Fixes: e99e46965182 ("KVM: PPC: Book3S PR: Don't include SPAPR TCE code on non-pseries platforms")
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S