tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6dc544b66971c7f9909ff038b62149105272d26a commit: f7254e043ff1cc9ff97b0de83bc23509c8be4b9c [1549/2075] udmabuf: use vmf_insert_pfn and VM_PFNMAP for handling mmap config: sh-randconfig-r012-20230414 (https://download.01.org/0day-ci/archive/20240528/202405282308.UEzt6hqC-lkp@xxxxxxxxx/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240528/202405282308.UEzt6hqC-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/202405282308.UEzt6hqC-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): sh4-linux-ld: drivers/dma-buf/udmabuf.o: in function `udmabuf_vm_fault': >> drivers/dma-buf/udmabuf.c:45:(.text+0x140): undefined reference to `vmf_insert_pfn' vim +45 drivers/dma-buf/udmabuf.c fbb0de795078190 Gerd Hoffmann 2018-08-27 32 300133d372b7b54 Souptick Joarder 2019-01-03 33 static vm_fault_t udmabuf_vm_fault(struct vm_fault *vmf) fbb0de795078190 Gerd Hoffmann 2018-08-27 34 { fbb0de795078190 Gerd Hoffmann 2018-08-27 35 struct vm_area_struct *vma = vmf->vma; fbb0de795078190 Gerd Hoffmann 2018-08-27 36 struct udmabuf *ubuf = vma->vm_private_data; 05b252cccb2e5c3 Gerd Hoffmann 2022-06-20 37 pgoff_t pgoff = vmf->pgoff; f7254e043ff1cc9 Vivek Kasireddy 2024-04-10 38 unsigned long pfn; fbb0de795078190 Gerd Hoffmann 2018-08-27 39 05b252cccb2e5c3 Gerd Hoffmann 2022-06-20 40 if (pgoff >= ubuf->pagecount) 05b252cccb2e5c3 Gerd Hoffmann 2022-06-20 41 return VM_FAULT_SIGBUS; f7254e043ff1cc9 Vivek Kasireddy 2024-04-10 42 f7254e043ff1cc9 Vivek Kasireddy 2024-04-10 43 pfn = page_to_pfn(ubuf->pages[pgoff]); f7254e043ff1cc9 Vivek Kasireddy 2024-04-10 44 return vmf_insert_pfn(vma, vmf->address, pfn); fbb0de795078190 Gerd Hoffmann 2018-08-27 @45 } fbb0de795078190 Gerd Hoffmann 2018-08-27 46 :::::: The code at line 45 was first introduced by commit :::::: fbb0de795078190a9834b3409e4b009cfb18a6d4 Add udmabuf misc device :::::: TO: Gerd Hoffmann <kraxel@xxxxxxxxxx> :::::: CC: Gerd Hoffmann <kraxel@xxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki