tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 38987d8c2c1d38c1be93aaa52e8808b04fa10d96
commit: b2af0e6da9a5acff7db01db16899c180bf3105d9 [36/43] FROMGIT: virtio: add dma-buf
support for exported objects
config: h8300-randconfig-r003-20200909 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b2af0e6da9a5acff7db01db16899c180bf3105d9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
h8300-linux-ld: section .init.text LMA [00000000004990e0,00000000004ce9ef] overlaps
section .text LMA [0000000000000158,0000000000a404cf]
h8300-linux-ld: section .data VMA [0000000000400000,00000000004990df] overlaps section
.text VMA [0000000000000158,0000000000a404cf]
h8300-linux-ld: arch/h8300/kernel/entry.o: in function `resume_kernel':
arch/h8300/kernel/entry.S:324: undefined reference to `TI_PRE_COUNT'
h8300-linux-ld: drivers/virtio/virtio_dma_buf.o: in function
`virtio_dma_buf_export':
> drivers/virtio/virtio_dma_buf.c:32: undefined reference to
`dma_buf_export'
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout b2af0e6da9a5acff7db01db16899c180bf3105d9
vim +32 drivers/virtio/virtio_dma_buf.c
9
10 /**
11 * virtio_dma_buf_export - Creates a new dma-buf for a virtio exported object
12 * @exp_info: [in] see dma_buf_export(). ops MUST refer to a dma_buf_ops
13 * struct embedded in a virtio_dma_buf_ops.
14 *
15 * This wraps dma_buf_export() to allow virtio drivers to create a dma-buf
16 * for an virtio exported object that can be queried by other virtio drivers
17 * for the object's UUID.
18 */
19 struct dma_buf *virtio_dma_buf_export
20 (const struct dma_buf_export_info *exp_info)
21 {
22 const struct virtio_dma_buf_ops *virtio_ops =
23 container_of(exp_info->ops,
24 const struct virtio_dma_buf_ops, ops);
25
26 if (!exp_info->ops ||
27 exp_info->ops->attach != &virtio_dma_buf_attach ||
28 !virtio_ops->get_uuid) {
29 return ERR_PTR(-EINVAL);
30 }
31
32 return dma_buf_export(exp_info);
33 }
34 EXPORT_SYMBOL(virtio_dma_buf_export);
35
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org