Re: [PATCH] iommu: fix compilation without CONFIG_IOMMU_INTEL

From: Joerg Roedel
Date: Fri Mar 08 2024 - 03:04:12 EST


On Thu, Mar 07, 2024 at 08:44:19PM +0100, Bert Karwatzki wrote:
> 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.
>
> Fixes: def054b01a8678 ("iommu/vt-d: Use device rbtree in iopf reporting path")
>
> Signed-off-by: Bert Karwatzki <spasswolf@xxxxxx>
> ---
> drivers/iommu/Kconfig | 2 +-
> drivers/iommu/intel/Makefile | 2 ++
> drivers/iommu/irq_remapping.c | 3 ++-
> 3 files changed, 5 insertions(+), 2 deletions(-)

Applied, thanks.