[sailus-media-tree:streams 20/26] drivers/media/test-drivers/vimc/vimc-capture.c:249:44: error: 'vcap' undeclared

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

 



tree:   git://linuxtv.org/sailus/media_tree.git streams
head:   4a1af70e7350faee9c9c0a34e529f9e417eea467
commit: f612352ecd419db911f9441257a49da946041304 [20/26] media: drivers: use video device pipeline start/stop
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220908/202209080814.8csZ9uMJ-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 12.1.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 remote add sailus-media-tree git://linuxtv.org/sailus/media_tree.git
        git fetch --no-tags sailus-media-tree streams
        git checkout f612352ecd419db911f9441257a49da946041304
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/media/test-drivers/vimc/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/media/test-drivers/vimc/vimc-capture.c: In function 'vimc_capture_start_streaming':
>> drivers/media/test-drivers/vimc/vimc-capture.c:249:44: error: 'vcap' undeclared (first use in this function)
     249 |         ret = video_device_pipeline_start(&vcap->vdev, &vcap->stream.pipe);
         |                                            ^~~~
   drivers/media/test-drivers/vimc/vimc-capture.c:249:44: note: each undeclared identifier is reported only once for each function it appears in


vim +/vcap +249 drivers/media/test-drivers/vimc/vimc-capture.c

   240	
   241	static int vimc_capture_start_streaming(struct vb2_queue *vq, unsigned int count)
   242	{
   243		struct vimc_capture_device *vcapture = vb2_get_drv_priv(vq);
   244		int ret;
   245	
   246		vcapture->sequence = 0;
   247	
   248		/* Start the media pipeline */
 > 249		ret = video_device_pipeline_start(&vcap->vdev, &vcap->stream.pipe);
   250		if (ret) {
   251			vimc_capture_return_all_buffers(vcapture, VB2_BUF_STATE_QUEUED);
   252			return ret;
   253		}
   254	
   255		ret = vimc_streamer_s_stream(&vcapture->stream, &vcapture->ved, 1);
   256		if (ret) {
   257			video_device_pipeline_stop(&vcap->vdev);
   258			vimc_capture_return_all_buffers(vcapture, VB2_BUF_STATE_QUEUED);
   259			return ret;
   260		}
   261	
   262		return 0;
   263	}
   264	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



[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