Skip to content

Commit faa37ff

Browse files
jgunthorpejoergroedel
authored andcommitted
iommufd/selftest: Add missing kconfig for DMA_SHARED_BUFFER
The test doesn't build without it, dma-buf.h does not provide stub functions if it is not enabled. Compilation can fail with: ERROR:root:ld: vmlinux.o: in function `iommufd_test': (.text+0x3b1cdd): undefined reference to `dma_buf_get' ld: (.text+0x3b1d08): undefined reference to `dma_buf_put' ld: (.text+0x3b2105): undefined reference to `dma_buf_export' ld: (.text+0x3b211f): undefined reference to `dma_buf_fd' ld: (.text+0x3b2e47): undefined reference to `dma_buf_move_notify' Add the missing select. Fixes: d2041f1 ("iommufd/selftest: Add some tests for the dmabuf flow") Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
1 parent cefd81e commit faa37ff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/iommu/iommufd/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ config IOMMUFD_TEST
4242
depends on FAULT_INJECTION
4343
depends on RUNTIME_TESTING_MENU
4444
depends on IOMMU_PT_AMDV1
45+
select DMA_SHARED_BUFFER
4546
select IOMMUFD_DRIVER
4647
default n
4748
help

0 commit comments

Comments
 (0)