diff options
| author | Jiri Pirko <jiri@nvidia.com> | 2026-05-29 15:43:10 +0200 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-05-29 20:19:59 -0300 |
| commit | 2cc10972f5f4f123e5a7658824db4f7b5abfc410 (patch) | |
| tree | 12d43c52e46c5165e1b7865914d8fdb9c4cb985f /include | |
| parent | 38fc5bab6c62dd39f4d0b0f270657024f5f07b1e (diff) | |
RDMA/umem: Add ib_umem_is_contiguous() stub for !CONFIG_INFINIBAND_USER_MEM
ib_umem_is_contiguous() is defined under #ifdef
CONFIG_INFINIBAND_USER_MEM, but the #else branch lacks a stub.
Add the missing inline to fix potential broken build.
Fixes: c897c2c8b8e8 ("RDMA/core: Add umem "is_contiguous" and "start_dma_addr" helpers")
Link: https://patch.msgid.link/r/20260529134312.2836341-15-jiri@resnulli.us
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/rdma/ib_umem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h index 370d802f0e63..bc1e6ed73b3f 100644 --- a/include/rdma/ib_umem.h +++ b/include/rdma/ib_umem.h @@ -244,6 +244,10 @@ static inline unsigned long ib_umem_find_best_pgoff(struct ib_umem *umem, { return 0; } +static inline bool ib_umem_is_contiguous(struct ib_umem *umem) +{ + return false; +} static inline struct ib_umem_dmabuf *ib_umem_dmabuf_get(struct ib_device *device, unsigned long offset, |
