]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommufd/selftest: Add missing kconfig for DMA_SHARED_BUFFER
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 6 Jan 2026 19:22:11 +0000 (15:22 -0400)
committerJoerg Roedel <joerg.roedel@amd.com>
Sat, 10 Jan 2026 09:40:58 +0000 (10:40 +0100)
commitfaa37ff3bf18d5242fe3d54f5462b1c3254c2567
tree8e5c862c2bb83fbd774896c0b58ce49d3742b7a7
parentcefd81e76a8c0dc4aa2bacd884acca44e7b61e5b
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: d2041f1f11dd ("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>
drivers/iommu/iommufd/Kconfig