iommu: Fix compilation without CONFIG_IOMMU_INTEL
authorBert Karwatzki <spasswolf@web.de>
Thu, 7 Mar 2024 19:44:19 +0000 (20:44 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 8 Mar 2024 08:03:18 +0000 (09:03 +0100)
commit70bad345e622c23bb530016925c936ab04a646ac
treededb22cf7502db952d9de192ca21b59153095e45
parent80ca79f398bff2708ee7a19d5904804415680aad
iommu: Fix compilation without CONFIG_IOMMU_INTEL

When the kernel is comiled with CONFIG_IRQ_REMAP=y but without
CONFIG_IOMMU_INTEL compilation fails since commit def054b01a8678 with an
undefined reference to device_rbtree_find(). This patch makes sure that
intel specific code is only compiled with CONFIG_IOMMU_INTEL=y.

Signed-off-by: Bert Karwatzki <spasswolf@web.de>
Fixes: 80a9b50c0b9e ("iommu/vt-d: Improve ITE fault handling if target device isn't present")
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20240307194419.15801-1-spasswolf@web.de
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig
drivers/iommu/intel/Makefile
drivers/iommu/irq_remapping.c