Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: staging: tegra-vde: Fix build error

If IOMMU_SUPPORT is not set, and COMPILE_TEST is y,
IOMMU_IOVA may be set to m. So building will fails:

drivers/staging/media/tegra-vde/iommu.o: In function `tegra_vde_iommu_map':
iommu.c:(.text+0x41): undefined reference to `alloc_iova'
iommu.c:(.text+0x56): undefined reference to `__free_iova'

Select IOMMU_IOVA while COMPILE_TEST is set to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Dmitry Osipenko <digetx@gmail.com>
Fixes: b301f8de1925 ("media: staging: media: tegra-vde: Add IOMMU support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

authored by

YueHaibing and committed by
Mauro Carvalho Chehab
6b226597 d42974e4

+1 -1
+1 -1
drivers/staging/media/tegra-vde/Kconfig
··· 3 3 tristate "NVIDIA Tegra Video Decoder Engine driver" 4 4 depends on ARCH_TEGRA || COMPILE_TEST 5 5 select DMA_SHARED_BUFFER 6 - select IOMMU_IOVA if IOMMU_SUPPORT 6 + select IOMMU_IOVA if (IOMMU_SUPPORT || COMPILE_TEST) 7 7 select SRAM 8 8 help 9 9 Say Y here to enable support for the NVIDIA Tegra video decoder