]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RDMA/uverbs: Import DMA-BUF module in uverbs_std_types_dmabuf file
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 25 Feb 2026 13:48:59 +0000 (15:48 +0200)
committerLeon Romanovsky <leon@kernel.org>
Thu, 26 Feb 2026 09:58:24 +0000 (04:58 -0500)
Fix the following compilation error:

ERROR: modpost: module ib_uverbs uses symbol dma_buf_move_notify
from namespace DMA_BUF, but does not import it.

Fixes: 0ac6f4056c4a ("RDMA/uverbs: Add DMABUF object type and operations")
Link: https://patch.msgid.link/20260225-fix-uverbs-compilation-v1-1-acf7b3d0f9fa@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/uverbs_std_types_dmabuf.c

index dfdfcd1d1a44695f143badb1cab0cf12fbf0443c..4a7f8b6f9dc8fe6893065999e6092e88d50633f9 100644 (file)
@@ -10,6 +10,8 @@
 #include "rdma_core.h"
 #include "uverbs.h"
 
+MODULE_IMPORT_NS("DMA_BUF");
+
 static int uverbs_dmabuf_attach(struct dma_buf *dmabuf,
                                struct dma_buf_attachment *attachment)
 {