summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2026-02-13 13:57:38 +0300
committerLeon Romanovsky <leonro@nvidia.com>2026-02-25 16:15:30 +0300
commit2ae3c4f6eae911946d0971f377fd00543d2a933e (patch)
treea67d2b1c0b8a97dc8d5fce7f080988b1f0823cd4 /include
parent6094ea64c69520ed1e770e7c79c43412de202bfa (diff)
downloadlinux-2ae3c4f6eae911946d0971f377fd00543d2a933e.tar.xz
RDMA/umem: Allow including ib_umem header from any location
Including ib_umem.h currently triggers circular dependency errors. These issues can be resolved by removing the include of ib_verbs.h, which was only needed to resolve the struct ib_device pointer. >> depmod: ERROR: Cycle detected: ib_core -> ib_uverbs -> ib_core >> depmod: ERROR: Found 2 modules in dependency cycles! make[3]: *** [scripts/Makefile.modinst:132: depmod] Error 1 make[3]: Target '__modinst' not remade because of errors. make[2]: *** [Makefile:1960: modules_install] Error 2 make[1]: *** [Makefile:248: __sub-make] Error 2 make[1]: Target 'modules_install' not remade because of errors. make: *** [Makefile:248: __sub-make] Error 2 make: Target 'modules_install' not remade because of errors. Link: https://patch.msgid.link/20260213-refactor-umem-v1-2-f3be85847922@nvidia.com Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/ib_umem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h
index db92d4623647..d0772a1ed802 100644
--- a/include/rdma/ib_umem.h
+++ b/include/rdma/ib_umem.h
@@ -10,8 +10,8 @@
#include <linux/list.h>
#include <linux/scatterlist.h>
#include <linux/workqueue.h>
-#include <rdma/ib_verbs.h>
+struct ib_device;
struct ib_ucontext;
struct ib_umem_odp;
struct dma_buf_attach_ops;