Skip to contentSkip to conversation

RDMA/uverbs: Import DMA-BUF module in uverbs_std_types_dmabuf file

PATCH Applied Leon Romanovsky 1 participant 2 messages Feb 25 – Feb 26 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/uverbs: Import DMA-BUF module in uverbs_std_types_dmabuf file

From: Leon Romanovsky <[email protected]>

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")
---
 drivers/infiniband/core/uverbs_std_types_dmabuf.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/infiniband/core/uverbs_std_types_dmabuf.c +2 -0
index dfdfcd1d1a44..4a7f8b6f9dc8 100644
@@ -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)
 {

---
base-commit: 104016eb671e19709721c1b0048dd912dc2e96be
change-id: 20260225-fix-uverbs-compilation-d6668390275b

Best regards,

Signature · 1 line
Leon Romanovsky <[email protected]>
author Applied
#1 lore raw
Quoted 6 lines · Leon Romanovsky

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.

Applied, thanks!

[1/1] RDMA/uverbs: Import DMA-BUF module in uverbs_std_types_dmabuf file

      https://git.kernel.org/rdma/rdma/c/7c2889af823340

Best regards,

Signature · 1 line
Leon Romanovsky <[email protected]>