drivers/media/common/videobuf2/videobuf2-core.c:1737: undefined reference to `v4l_vb2q_enable_media_source'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hans,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3664ce2d930983966d2aac0e167f1332988c4e25
commit: 7952be9b6ece3d3c4d61f9811d7e5a984580064a media: drivers/media/common/videobuf2: rename from videobuf
date:   5 weeks ago
config: x86_64-randconfig-r0-02260008 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout 7952be9b6ece3d3c4d61f9811d7e5a984580064a
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/media/common/videobuf2/videobuf2-core.o: In function `vb2_core_streamon':
>> drivers/media/common/videobuf2/videobuf2-core.c:1737: undefined reference to `v4l_vb2q_enable_media_source'
   drivers/media/common/videobuf2/videobuf2-v4l2.o: In function `vb2_poll':
   drivers/media/common/videobuf2/videobuf2-v4l2.c:678: undefined reference to `video_devdata'
   drivers/media/common/videobuf2/videobuf2-v4l2.c:685: undefined reference to `v4l2_event_pending'
   drivers/media/common/videobuf2/videobuf2-v4l2.o: In function `vb2_ioctl_reqbufs':
   drivers/media/common/videobuf2/videobuf2-v4l2.c:714: undefined reference to `video_devdata'
   drivers/media/common/videobuf2/videobuf2-v4l2.o: In function `vb2_ioctl_create_bufs':
   drivers/media/common/videobuf2/videobuf2-v4l2.c:733: undefined reference to `video_devdata'
   drivers/media/common/videobuf2/videobuf2-v4l2.o: In function `vb2_ioctl_prepare_buf':
   drivers/media/common/videobuf2/videobuf2-v4l2.c:759: undefined reference to `video_devdata'
   drivers/media/common/videobuf2/videobuf2-v4l2.o: In function `vb2_ioctl_querybuf':
   drivers/media/common/videobuf2/videobuf2-v4l2.c:769: undefined reference to `video_devdata'
   drivers/media/common/videobuf2/videobuf2-v4l2.o: In function `vb2_ioctl_qbuf':
   drivers/media/common/videobuf2/videobuf2-v4l2.c:778: undefined reference to `video_devdata'
   drivers/media/common/videobuf2/videobuf2-v4l2.o:drivers/media/common/videobuf2/videobuf2-v4l2.c:788: more undefined references to `video_devdata' follow
   drivers/media/common/videobuf2/videobuf2-v4l2.o: In function `_vb2_fop_release':
   drivers/media/common/videobuf2/videobuf2-v4l2.c:848: undefined reference to `v4l2_fh_release'

vim +1737 drivers/media/common/videobuf2/videobuf2-core.c

bd323e28b drivers/media/video/videobuf2-core.c     Marek Szyprowski        2011-08-29  1706  
3c5be988e drivers/media/v4l2-core/videobuf2-core.c Junghak Sung            2015-10-06  1707  int vb2_core_streamon(struct vb2_queue *q, unsigned int type)
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1708  {
5db2c3ba4 drivers/media/video/videobuf2-core.c     Pawel Osciak            2011-03-20  1709  	int ret;
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1710  
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1711  	if (type != q->type) {
fd4354cf5 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-04-07  1712  		dprintk(1, "invalid stream type\n");
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1713  		return -EINVAL;
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1714  	}
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1715  
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1716  	if (q->streaming) {
fd4354cf5 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-04-07  1717  		dprintk(3, "already streaming\n");
f956035ce drivers/media/v4l2-core/videobuf2-core.c Ricardo Ribalda Delgado 2013-11-08  1718  		return 0;
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1719  	}
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1720  
548df7831 drivers/media/v4l2-core/videobuf2-core.c Ricardo Ribalda Delgado 2014-01-08  1721  	if (!q->num_buffers) {
fd4354cf5 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-04-07  1722  		dprintk(1, "no buffers have been allocated\n");
548df7831 drivers/media/v4l2-core/videobuf2-core.c Ricardo Ribalda Delgado 2014-01-08  1723  		return -EINVAL;
548df7831 drivers/media/v4l2-core/videobuf2-core.c Ricardo Ribalda Delgado 2014-01-08  1724  	}
548df7831 drivers/media/v4l2-core/videobuf2-core.c Ricardo Ribalda Delgado 2014-01-08  1725  
b3379c620 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-02-24  1726  	if (q->num_buffers < q->min_buffers_needed) {
fd4354cf5 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-04-07  1727  		dprintk(1, "need at least %u allocated buffers\n",
b3379c620 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-02-24  1728  				q->min_buffers_needed);
b3379c620 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-02-24  1729  		return -EINVAL;
b3379c620 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-02-24  1730  	}
249f5a58b drivers/media/v4l2-core/videobuf2-core.c Ricardo Ribalda Delgado 2014-01-08  1731  
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1732  	/*
b3379c620 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-02-24  1733  	 * Tell driver to start streaming provided sufficient buffers
b3379c620 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-02-24  1734  	 * are available.
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1735  	 */
b3379c620 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-02-24  1736  	if (q->queued_count >= q->min_buffers_needed) {
77fa4e072 drivers/media/v4l2-core/videobuf2-core.c Shuah Khan              2016-02-11 @1737  		ret = v4l_vb2q_enable_media_source(q);
77fa4e072 drivers/media/v4l2-core/videobuf2-core.c Shuah Khan              2016-02-11  1738  		if (ret)
77fa4e072 drivers/media/v4l2-core/videobuf2-core.c Shuah Khan              2016-02-11  1739  			return ret;
02f142ecd drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2013-12-13  1740  		ret = vb2_start_streaming(q);
5db2c3ba4 drivers/media/video/videobuf2-core.c     Pawel Osciak            2011-03-20  1741  		if (ret) {
bd323e28b drivers/media/video/videobuf2-core.c     Marek Szyprowski        2011-08-29  1742  			__vb2_queue_cancel(q);
5db2c3ba4 drivers/media/video/videobuf2-core.c     Pawel Osciak            2011-03-20  1743  			return ret;
5db2c3ba4 drivers/media/video/videobuf2-core.c     Pawel Osciak            2011-03-20  1744  		}
b3379c620 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-02-24  1745  	}
5db2c3ba4 drivers/media/video/videobuf2-core.c     Pawel Osciak            2011-03-20  1746  
5db2c3ba4 drivers/media/video/videobuf2-core.c     Pawel Osciak            2011-03-20  1747  	q->streaming = 1;
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1748  
fd4354cf5 drivers/media/v4l2-core/videobuf2-core.c Hans Verkuil            2014-04-07  1749  	dprintk(3, "successful\n");
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1750  	return 0;
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1751  }
3c5be988e drivers/media/v4l2-core/videobuf2-core.c Junghak Sung            2015-10-06  1752  EXPORT_SYMBOL_GPL(vb2_core_streamon);
e23ccc0ad drivers/media/video/videobuf2-core.c     Pawel Osciak            2010-10-11  1753  

:::::: The code at line 1737 was first introduced by commit
:::::: 77fa4e072998705883c4dc672963b4bf7483cea9 [media] media: Change v4l-core to check if source is free

:::::: TO: Shuah Khan <shuahkh@xxxxxxxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux