Skip to content

Commit cefd81e

Browse files
jgunthorpejoergroedel
authored andcommitted
iommupt: Fix the kunit building
The kunit doesn't work since the below commit made GENERIC_PT unselectable: $ make ARCH=x86_64 O=build_kunit_x86_64 olddefconfig ERROR:root:Not all Kconfig options selected in kunitconfig were in the generated .config. This is probably due to unsatisfied dependencies. Missing: CONFIG_DEBUG_GENERIC_PT=y, CONFIG_IOMMUFD_TEST=y, CONFIG_IOMMU_PT_X86_64=y, CONFIG_GENERIC_PT=y, CONFIG_IOMMU_PT_AMDV1=y, CONFIG_IOMMU_PT_VTDSS=y, CONFIG_IOMMU_PT=y, CONFIG_IOMMU_PT_KUNIT_TEST=y Also remove the unneeded CONFIG_IOMMUFD_TEST reference as the iommupt kunit doesn't interact with iommufd, and it doesn't currently build for the kunit due problems with DMA_SHARED buffer either. Fixes: 01569c2 ("genpt: Make GENERIC_PT invisible") Fixes: 1dd4187 ("iommupt: Add a kunit test for Generic Page Table") Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
1 parent 9ace475 commit cefd81e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/generic_pt/.kunitconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_KUNIT=y
2+
CONFIG_COMPILE_TEST=y
23
CONFIG_GENERIC_PT=y
34
CONFIG_DEBUG_GENERIC_PT=y
45
CONFIG_IOMMU_PT=y
@@ -11,4 +12,3 @@ CONFIG_IOMMUFD=y
1112
CONFIG_DEBUG_KERNEL=y
1213
CONFIG_FAULT_INJECTION=y
1314
CONFIG_RUNTIME_TESTING_MENU=y
14-
CONFIG_IOMMUFD_TEST=y

0 commit comments

Comments
 (0)