selftests/iommu: fix the config fragment
PATCH 1/1 selftests/iommu: fix the config fragment
The config fragment doesn't follow the correct format to enable those config options which make the config options getting missed while merging with other configs.
➜ merge_config.sh -m .config tools/testing/selftests/iommu/config Using .config as base
Merging tools/testing/selftests/iommu/config
➜ make olddefconfig
.config:5295:warning: unexpected data: CONFIG_IOMMUFD .config:5296:warning: unexpected data: CONFIG_IOMMUFD_TEST
While at it, add CONFIG_FAULT_INJECTION as well which is needed for CONFIG_IOMMUFD_TEST. If CONFIG_FAULT_INJECTION isn't present in base config (such as x86 defconfig), CONFIG_IOMMUFD_TEST doesn't get enabled.
--- tools/testing/selftests/iommu/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
tools/testing/selftests/iommu/config +3 -2
@@ -1,2 +1,3 @@ -CONFIG_IOMMUFD -CONFIG_IOMMUFD_TEST +CONFIG_IOMMUFD=y +CONFIG_FAULT_INJECTION=y +CONFIG_IOMMUFD_TEST=y
Signature · 1 line
2.42.0
Quoted 15 lines · Muhammad Usama Anjum
The config fragment doesn't follow the correct format to enable those config options which make the config options getting missed while merging with other configs.
➜
merge_config.sh-m .configtools/testing/selftests/iommu/configUsing .config as base
Mergingtools/testing/selftests/iommu/config
➜ make olddefconfig
.config:5295:warning: unexpected data:CONFIG_IOMMUFD.config:5296:warning: unexpected data:CONFIG_IOMMUFD_TESTWhile at it, add
CONFIG_FAULT_INJECTIONas well which is needed forCONFIG_IOMMUFD_TEST. IfCONFIG_FAULT_INJECTIONisn't present in base config (such as x86 defconfig),CONFIG_IOMMUFD_TESTdoesn't get enabled.
Quoted 5 lines
Fixes 57f0988706fe ("iommufd: Add a selftest")Signed-off-by Muhammad Usama Anjum <[email protected]>--- tools/testing/selftests/iommu/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Appled, thanks
Jason