linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 1549/2075] drivers/dma-buf/udmabuf.c:45:undefined reference to `vmf_insert_pfn'
@ 2024-05-28 15:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-28 15:31 UTC (permalink / raw)
  To: Vivek Kasireddy
  Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton

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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405282308.UEzt6hqC-lkp@intel.com/

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@redhat.com>
:::::: CC: Gerd Hoffmann <kraxel@redhat.com>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-28 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-28 15:31 [linux-next:master 1549/2075] drivers/dma-buf/udmabuf.c:45:undefined reference to `vmf_insert_pfn' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox