[xlnx:xlnx_rebase_v5.4 864/1762] drivers/fpga/fpga-mgr.c:693: undefined reference to `dma_buf_get'

kernel test robot lkp at intel.com
Tue Jun 15 12:44:12 PDT 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   d128303e4c53bcf7775c46771bf64c71596f3303
commit: 1a0c556193a3d81ff6bde4c571c38b2c19bbb443 [864/1762] fpga: support loading from a pre-allocated buffer
config: i386-randconfig-a002-20210615 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/Xilinx/linux-xlnx/commit/1a0c556193a3d81ff6bde4c571c38b2c19bbb443
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 1a0c556193a3d81ff6bde4c571c38b2c19bbb443
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   ld: drivers/fpga/fpga-mgr.o: in function `fpga_dmabuf_fd_get':
>> drivers/fpga/fpga-mgr.c:693: undefined reference to `dma_buf_get'
   ld: drivers/fpga/fpga-mgr.o: in function `fpga_dmabuf_load':
>> drivers/fpga/fpga-mgr.c:315: undefined reference to `dma_buf_attach'
>> ld: drivers/fpga/fpga-mgr.c:322: undefined reference to `dma_buf_map_attachment'
>> ld: drivers/fpga/fpga-mgr.c:330: undefined reference to `dma_buf_unmap_attachment'
>> ld: drivers/fpga/fpga-mgr.c:333: undefined reference to `dma_buf_detach'
>> ld: drivers/fpga/fpga-mgr.c:335: undefined reference to `dma_buf_put'


vim +693 drivers/fpga/fpga-mgr.c

   684	
   685	static int fpga_dmabuf_fd_get(struct file *file, char __user *argp)
   686	{
   687		struct fpga_manager *mgr =  (struct fpga_manager *)(file->private_data);
   688		int buffd;
   689	
   690		if (copy_from_user(&buffd, argp, sizeof(buffd)))
   691			return -EFAULT;
   692	
 > 693		mgr->dmabuf = dma_buf_get(buffd);
   694		if (IS_ERR_OR_NULL(mgr->dmabuf))
   695			return -EINVAL;
   696	
   697		return 0;
   698	}
   699	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 30263 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210616/c50c201e/attachment-0001.gz>


More information about the linux-arm-kernel mailing list