drivers/infiniband/core/ib_core_uverbs.c:249:undefined reference to `dma_buf_move_notify'
From: kernel test robot
Date: Wed Feb 18 2026 - 19:46:26 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 23b0f90ba871f096474e1c27c3d14f455189d2d9
commit: 0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 RDMA/uverbs: Add DMABUF object type and operations
date: 10 days ago
config: x86_64-randconfig-005-20250616 (https://download.01.org/0day-ci/archive/20260219/202602190832.RTYwo5mP-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260219/202602190832.RTYwo5mP-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602190832.RTYwo5mP-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
ld: drivers/infiniband/core/ib_core_uverbs.o: in function `rdma_user_mmap_entry_remove':
>> drivers/infiniband/core/ib_core_uverbs.c:249:(.text+0x8bd): undefined reference to `dma_buf_move_notify'
>> ld: drivers/infiniband/core/ib_core_uverbs.c:250:(.text+0x8de): undefined reference to `dma_resv_wait_timeout'
ld: drivers/infiniband/core/ib_core_uverbs.o: in function `dma_resv_unlock':
>> include/linux/dma-resv.h:463:(.text+0x8f1): undefined reference to `dma_resv_reset_max_fences'
vim +249 drivers/infiniband/core/ib_core_uverbs.c
223
224 /**
225 * rdma_user_mmap_entry_remove() - Drop reference to entry and
226 * mark it as unmmapable
227 *
228 * @entry: the entry to insert into the mmap_xa
229 *
230 * Drivers can call this to prevent userspace from creating more mappings for
231 * entry, however existing mmaps continue to exist and ops->mmap_free() will
232 * not be called until all user mmaps are destroyed.
233 */
234 void rdma_user_mmap_entry_remove(struct rdma_user_mmap_entry *entry)
235 {
236 struct ib_uverbs_dmabuf_file *uverbs_dmabuf, *tmp;
237
238 if (!entry)
239 return;
240
241 mutex_lock(&entry->dmabufs_lock);
242 xa_lock(&entry->ucontext->mmap_xa);
243 entry->driver_removed = true;
244 xa_unlock(&entry->ucontext->mmap_xa);
245 list_for_each_entry_safe(uverbs_dmabuf, tmp, &entry->dmabufs, dmabufs_elm) {
246 dma_resv_lock(uverbs_dmabuf->dmabuf->resv, NULL);
247 list_del(&uverbs_dmabuf->dmabufs_elm);
248 uverbs_dmabuf->revoked = true;
> 249 dma_buf_move_notify(uverbs_dmabuf->dmabuf);
> 250 dma_resv_wait_timeout(uverbs_dmabuf->dmabuf->resv,
251 DMA_RESV_USAGE_BOOKKEEP, false,
252 MAX_SCHEDULE_TIMEOUT);
253 dma_resv_unlock(uverbs_dmabuf->dmabuf->resv);
254 kref_put(&uverbs_dmabuf->kref, ib_uverbs_dmabuf_done);
255 wait_for_completion(&uverbs_dmabuf->comp);
256 }
257 mutex_unlock(&entry->dmabufs_lock);
258
259 kref_put(&entry->ref, rdma_user_mmap_entry_free);
260 }
261 EXPORT_SYMBOL(rdma_user_mmap_entry_remove);
262
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki