[linux-next:master 1629/4912] drivers/media/i2c/ov5670.c:1917:5: error: implicit declaration of function 'v4l2_subdev_get_try_format'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   50107a90cb05a474eeb8f41f5cc5fa5a8644de2e
commit: 5de35c9b8dcd10dcedba2917e2ab4c1f3ca28dc6 [1629/4912] media: i2c: Add Omnivision OV5670 5M sensor support
config: x86_64-randconfig-ws0-08070305 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
        git checkout 5de35c9b8dcd10dcedba2917e2ab4c1f3ca28dc6
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/media/i2c/ov5670.c: In function 'ov5670_open':
>> drivers/media/i2c/ov5670.c:1917:5: error: implicit declaration of function 'v4l2_subdev_get_try_format' [-Werror=implicit-function-declaration]
        v4l2_subdev_get_try_format(sd, fh->pad, 0);
        ^
>> drivers/media/i2c/ov5670.c:1917:38: error: 'struct v4l2_subdev_fh' has no member named 'pad'
        v4l2_subdev_get_try_format(sd, fh->pad, 0);
                                         ^
   drivers/media/i2c/ov5670.c: In function 'ov5670_do_get_pad_format':
>> drivers/media/i2c/ov5670.c:2198:17: error: invalid type argument of unary '*' (have 'int')
      fmt->format = *v4l2_subdev_get_try_format(&ov5670->sd, cfg,
                    ^
   drivers/media/i2c/ov5670.c: In function 'ov5670_set_pad_format':
   drivers/media/i2c/ov5670.c:2236:3: error: invalid type argument of unary '*' (have 'int')
      *v4l2_subdev_get_try_format(sd, cfg, fmt->pad) = fmt->format;
      ^
   drivers/media/i2c/ov5670.c: At top level:
   drivers/media/i2c/ov5670.c:2444:19: error: 'v4l2_subdev_link_validate' undeclared here (not in a function)
     .link_validate = v4l2_subdev_link_validate,
                      ^
   drivers/media/i2c/ov5670.c: In function 'ov5670_probe':
   drivers/media/i2c/ov5670.c:2492:12: error: 'struct v4l2_subdev' has no member named 'entity'
     ov5670->sd.entity.ops = &ov5670_subdev_entity_ops;
               ^
   drivers/media/i2c/ov5670.c:2493:12: error: 'struct v4l2_subdev' has no member named 'entity'
     ov5670->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
               ^
   drivers/media/i2c/ov5670.c:2497:42: error: 'struct v4l2_subdev' has no member named 'entity'
     ret = media_entity_pads_init(&ov5670->sd.entity, 1, &ov5670->pad);
                                             ^
   drivers/media/i2c/ov5670.c:2524:34: error: 'struct v4l2_subdev' has no member named 'entity'
     media_entity_cleanup(&ov5670->sd.entity);
                                     ^
   drivers/media/i2c/ov5670.c: In function 'ov5670_remove':
   drivers/media/i2c/ov5670.c:2544:26: error: 'struct v4l2_subdev' has no member named 'entity'
     media_entity_cleanup(&sd->entity);
                             ^
   cc1: some warnings being treated as errors

vim +/v4l2_subdev_get_try_format +1917 drivers/media/i2c/ov5670.c

  1911	
  1912	/* Open sub-device */
  1913	static int ov5670_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
  1914	{
  1915		struct ov5670 *ov5670 = to_ov5670(sd);
  1916		struct v4l2_mbus_framefmt *try_fmt =
> 1917					v4l2_subdev_get_try_format(sd, fh->pad, 0);
  1918	
  1919		mutex_lock(&ov5670->mutex);
  1920	
  1921		/* Initialize try_fmt */
  1922		try_fmt->width = ov5670->cur_mode->width;
  1923		try_fmt->height = ov5670->cur_mode->height;
  1924		try_fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10;
  1925		try_fmt->field = V4L2_FIELD_NONE;
  1926	
  1927		/* No crop or compose */
  1928		mutex_unlock(&ov5670->mutex);
  1929	
  1930		return 0;
  1931	}
  1932	

---
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