tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: ff5a1e6c7a5bcbdfb20dad7874015c71921c615d
commit: 7c5e01902547a81d7d8b073eb3f130814d9125d9 [17/18] BACKPORT: FROMGIT: virtio: fix
build for configs without dma-bufs
config: x86_64-randconfig-m001-20200913 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 7c5e01902547a81d7d8b073eb3f130814d9125d9
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
ld: drivers/media/virtio/virtio_video_device.o: in function
`virtio_video_get_dma_buf_id':
> drivers/media/virtio/virtio_video_device.c:62: undefined
reference to `virtio_dma_buf_get_uuid'
> ld: drivers/media/virtio/virtio_video_device.c:62: undefined reference to
`virtio_dma_buf_get_uuid'
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 7c5e01902547a81d7d8b073eb3f130814d9125d9
vim +62 drivers/media/virtio/virtio_video_device.c
bbca48582a7342c Dmitry Sepp 2020-02-18 53
76447af07bd090a Keiichi Watanabe 2020-03-25 54 static int
virtio_video_get_dma_buf_id(struct virtio_video_device *vvd,
76447af07bd090a Keiichi Watanabe 2020-03-25 55 struct vb2_buffer *vb, uuid_t
*uuid)
76447af07bd090a Keiichi Watanabe 2020-03-25 56 {
76447af07bd090a Keiichi Watanabe 2020-03-25 57 /**
76447af07bd090a Keiichi Watanabe 2020-03-25 58 * For multiplanar formats, we assume
all planes are on one DMA buffer.
76447af07bd090a Keiichi Watanabe 2020-03-25 59 */
76447af07bd090a Keiichi Watanabe 2020-03-25 60 struct dma_buf *dma_buf =
dma_buf_get(vb->planes[0].m.fd);
76447af07bd090a Keiichi Watanabe 2020-03-25 61
4bc6f86266bb489 David Stevens 2020-09-02 @62 return virtio_dma_buf_get_uuid(dma_buf,
uuid);
76447af07bd090a Keiichi Watanabe 2020-03-25 63 }
76447af07bd090a Keiichi Watanabe 2020-03-25 64
:::::: The code at line 62 was first introduced by commit
:::::: 4bc6f86266bb48997bfaf447010d172a75d16944 CHROMIUM: virtio: Update virtgpu buffer
sharing API
:::::: TO: David Stevens <stevensd(a)chromium.org>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org