io_pagetable.c:undefined reference to `dma_buf_put'

From: kernel test robot

Date: Sun Feb 22 2026 - 00:28:46 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fa5c82f4d2bbde10e9fd3a32aecacfe3813919ba
commit: 69dc538a4f5a57dcc5ea4893c769d567f539a1b1 iommufd: Fix building without dmabuf
date: 10 weeks ago
config: openrisc-randconfig-r064-20260222 (https://download.01.org/0day-ci/archive/20260222/202602221305.sabKvAHs-lkp@xxxxxxxxx/config)
compiler: or1k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260222/202602221305.sabKvAHs-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/202602221305.sabKvAHs-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

or1k-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_map_file_pages':
>> io_pagetable.c:(.text+0x208c): undefined reference to `dma_buf_put'
io_pagetable.c:(.text+0x208c): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `dma_buf_put'

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki