[xlnx:master 9508/9999] drivers/fpga/fpga-mgr.c:693: undefined reference to `dma_buf_get'
kernel test robot
lkp at intel.com
Mon Jun 22 00:32:54 EDT 2020
tree: https://github.com/Xilinx/linux-xlnx master
head: 319e5bc767fe351a63744daa9cdd69b1915956d0
commit: ed71785e2c3c3495e89c7b6c3a38699b59bf83d8 [9508/9999] fpga: support loading from a pre-allocated buffer
config: i386-randconfig-a013-20200621 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
git checkout ed71785e2c3c3495e89c7b6c3a38699b59bf83d8
# 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: 30474 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200622/ac5f24f9/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list